IE6 sorting + column of checkbox
IE6 sorting + column of checkbox
xaviers
Posts: 1Questions: 0Answers: 0
Hi,
there is a bug when sorting a table on any columns in IE 6 : the checkbox states are lost.
It can be seen on this page :
http://datatables.net/examples/api/form.html
Check some of the checkboxes in IE6 then sort on any column and look what happend.
I've been looking for a fix but I couldn't find one.
Can any one help ?
Thanks for this great work.
Xavier
there is a bug when sorting a table on any columns in IE 6 : the checkbox states are lost.
It can be seen on this page :
http://datatables.net/examples/api/form.html
Check some of the checkboxes in IE6 then sort on any column and look what happend.
I've been looking for a fix but I couldn't find one.
Can any one help ?
Thanks for this great work.
Xavier
This discussion has been closed.
Replies
The best fix for this is not to use IE6, since it's a bug in that browser. However, it is possible to work around it, by doing something like marking a property on the element which will indicate if the checkbox should be checked or not, and then using fnRowCallback (which is called whenever the row is displayed) to see if the checkbox should be marked as checked or not. So yup, possible to work around, but it will add a fair bit of complexity.
Sorry I don't have a better answer...
Allan