ColVis bRestore not working fix
ColVis bRestore not working fix
This is the fix I found for the problem as others have.
So you know that many have trouble with say, you have a hidden column, and then click the bRestore button from ColVis and it only restores what you just had or tries to. I saw one fix to set the columns to bvisible is false, but that is not the answer. Ironicially enough the function passes the current state of visibility of the button to the function to show it, but it compares itself to that value rendering a return.
Find this in ColVis on roughly line 129:
[code]that.s.dt.oInstance.fnSetColumnVis( i, that.s.abOriginal[i], false );[/code]
replace with:
[code]that.s.dt.oInstance.fnSetColumnVis( i, true, false );[/code]
This will pass a TRUE to the fnSetColumnVis function so when it compares it to what it is now, true, it will skip it, and if it is currently false, then it will go ahead and restore it and there you go!
I have all the latest versions, or close to it.
Enjoy.
So you know that many have trouble with say, you have a hidden column, and then click the bRestore button from ColVis and it only restores what you just had or tries to. I saw one fix to set the columns to bvisible is false, but that is not the answer. Ironicially enough the function passes the current state of visibility of the button to the function to show it, but it compares itself to that value rendering a return.
Find this in ColVis on roughly line 129:
[code]that.s.dt.oInstance.fnSetColumnVis( i, that.s.abOriginal[i], false );[/code]
replace with:
[code]that.s.dt.oInstance.fnSetColumnVis( i, true, false );[/code]
This will pass a TRUE to the fnSetColumnVis function so when it compares it to what it is now, true, it will skip it, and if it is currently false, then it will go ahead and restore it and there you go!
I have all the latest versions, or close to it.
Enjoy.
This discussion has been closed.