I have a CompositeDataBoundControl which has a CheckBox in one of the column. The CheckBox is set to AutoPostBack=True with OnCheckboxChanged handler. Now upon checkbox change I update my database value to true/false accordingly. This all works fine.
Now I added jquery datatables.net plugin with paging with displaying 10 records at a time. When I update checkboxes on first page it all works fine. Then if I move to second page and select a checkbox, it updates that record but then it start firing OnCheckBoxChanged handler for the times I changed checkboxes on page1. And for all those times, it resets those checkboxes.
-> There are no other explicit handler declaration anywhere in code-behind and this is C# so no Handles clauses issue. -> Someone talking here that it could be databinding but then the issue is only when using datatables. So not sure if it's that but I am looking into it.
Edit Check the sample here.
Steps to reproduce the issue: 1) Select couple checkboxes while on page1. The checkboxes will postback and update the message.
2) Now go to page2 and select a checkbox. The chbx will postback and grid will move to page1. Notice the chbx you selected in page1 lost the selection. If you move to page2, you will see the selection made persists.
Edit Seems this is the issue. Now finding little difficult to implement that. Need help on that.
I am not sure what's going on. Anyone had similar issue?