Radio Buttons in Table
Radio Buttons in Table
rds
Posts: 3Questions: 0Answers: 0
Problem:
When a datatable, enhanced from a plain html table, has radio buttons embedded in the row, the first row of buttons will not honor the checked attribute.
Cause:
When sizing columns, datatables creates a temporary row using copied information. The temporary row will have a copy of one the existing radio buttons with the checked attribute set. The new temporary row will show as selected. When datatables completes the sizing operation the temporary row is deleted, BUT the checked state is not restored in the original row.
Solution:
I have no idea. One possibility is when copying columns, make sure that copied radio buttons are unselected before being added.
When a datatable, enhanced from a plain html table, has radio buttons embedded in the row, the first row of buttons will not honor the checked attribute.
Cause:
When sizing columns, datatables creates a temporary row using copied information. The temporary row will have a copy of one the existing radio buttons with the checked attribute set. The new temporary row will show as selected. When datatables completes the sizing operation the temporary row is deleted, BUT the checked state is not restored in the original row.
Solution:
I have no idea. One possibility is when copying columns, make sure that copied radio buttons are unselected before being added.
This discussion has been closed.
Replies
Thanks,
Allan
Allan
http://live.datatables.net/eyogar