Show /Hide Column Check box did not work properly
Show /Hide Column Check box did not work properly
![sendil](https://secure.gravatar.com/avatar/1be1a2aeace5e40d6fb981fcf5bd1604/?default=https%3A%2F%2Fvanillicon.com%2F1be1a2aeace5e40d6fb981fcf5bd1604_200.png&rating=g&size=120)
Recently i implemented Show/Hide Columns . I have 1.9 version of DataTable and jquery 2.0.
It works great first time. I can able to uncheck columns and it removes the column from the grid. But when i check the checkbox it adds the column to the grid but check box never updated to Checked. After that i cannot able to uncheck that column.
After i spend few hours i figured out ColVis plug in uses following code
"_fnDrawCallback": function ()
{
var aoColumns = this.s.dt.aoColumns;
for ( var i=0, iLen=aoColumns.length ; i
It works great first time. I can able to uncheck columns and it removes the column from the grid. But when i check the checkbox it adds the column to the grid but check box never updated to Checked. After that i cannot able to uncheck that column.
After i spend few hours i figured out ColVis plug in uses following code
"_fnDrawCallback": function ()
{
var aoColumns = this.s.dt.aoColumns;
for ( var i=0, iLen=aoColumns.length ; i
This discussion has been closed.
Replies
Allan