Show selected state of checkbox if loaded from server
See original GitHub issueShort and descriptive example bug report title
A summary of the issue and the browser/OS environment in which it occurs. If suitable, include the steps required to reproduce the bug.
If you load table with radio buttons true, table will be loaded and last radio will have state set true.
Here is the code.
<table id="table" class="table-bordered" data-toggle="table" data-click-to-select="true" data-toolbar=".btn-primary" data-id-field="id" data-select-item-name="id"> <thead> <tr> <th data-field="id" data-radio="true">ID</th> <th data-field="name">Name</th> </tr> </thead> <tbody> <tr> <td >id</td> <td>name</td> /tr> <tr> <td >id2</td> <td>name2</td> /tr> </tbody> </table>
The output for the table will include radio button and name column. Let’s say you loaded data with 10 rows. It will then show the radio button enabled for last row and there is no way to show selected state of radio based on the data loaded from server.
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (6 by maintainers)
Top GitHub Comments
Its seems to be working fine now.
Thank you for the feedback 😃