IE6 sorting + column of checkbox

IE6 sorting + column of checkbox

xaviersxaviers Posts: 1Questions: 0Answers: 0
edited October 2010 in Bug reports
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

Replies

  • allanallan Posts: 63,691Questions: 1Answers: 10,500 Site admin
    I'm sorry to say that this is actually a bug in IE6, not in DataTables. We've encountered this a few times before sadly, and basically it's because IE6 does not at handle checkboxes which get pulled in and out of the root DOM (or indeed if this are made hidden) very well at all.

    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
This discussion has been closed.