question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show selected state of checkbox if loaded from server

See original GitHub issue

Short 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:closed
  • Created 4 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
omeryounuscommented, Feb 2, 2020

Its seems to be working fine now.

0reactions
UtechtDustincommented, Feb 2, 2020

Thank you for the feedback 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change/Get check state of CheckBox - Stack Overflow
The issue is that there's no object called checkAddress with a checked property. Most likely, checkAddress is the going to resolve as the...
Read more >
Quick Tip: Persist Checkbox Checked State after Page Reload
This quick tip describes how to have your browser remember the state of checkboxes once a page has been refreshed or a user...
Read more >
How To Display Text when a Checkbox is Checked - W3Schools
Display some text when the checkbox is checked: Checkbox: Checkbox is CHECKED! Check Whether a Checkbox is Checked. Step 1) Add HTML: Example....
Read more >
<input type="checkbox"> - HTML: HyperText Markup Language
A Boolean attribute indicating whether this checkbox is checked by default (when the page loads). It does not indicate whether this checkbox ......
Read more >
Row Selection - JavaScript Data Grid
suppressRowClickSelection : If true , rows won't be selected when clicked. Use, for example, when you want checkbox selection or your managing selection...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found