Click event unbinded after .fnAdjustColumnSizing(true) method
Click event unbinded after .fnAdjustColumnSizing(true) method
macuser
Posts: 20Questions: 0Answers: 0
Hey,
I tried to bind a click event to an input checkbox tag in a table row and called the fnAdjustColumnSizing to adjust the column width.
But after the method call, the click event which was bound to the input element was not found.
Regards.
I tried to bind a click event to an input checkbox tag in a table row and called the fnAdjustColumnSizing to adjust the column width.
But after the method call, the click event which was bound to the input element was not found.
Regards.
This discussion has been closed.
Replies
Allan
I could replicate the issue. This scenario occurs with use of fixed column.
http://live.datatables.net/emuzez
Steps to replicate:
1. Clicking on check boxes will generate random number after the header.
(This shows check boxes are bound with a function)
2. Click on the button below the header.
(This calls the fnAdjustColumnSizing function)
3. Now try to click on the check boxes
The click events are unbound. I think the issue is when you clone the first columns, it doesnt clone the function bound with the input tags.
Thanks :)
Hope you have a quick fix for this issue :)
Allan
Appreciate it :)