bStateSave negating bVisible
bStateSave negating bVisible
talkitivewizard
Posts: 30Questions: 0Answers: 0
I think this is a bug... If bStateSave: true then if you change a column to be bVisible: false in the code, the column shows anyway. Is this a feature or a bug? Is it supposed to maintain visual state too?
Steps to Reproduce.
1. Initialize a Datatable with bStateSave: true and columns visible
2. Run the table in your favorite browser.
3. Change your code to have columns invisible.
4. Run the table in your favorite browser again. (notice that the invisible fields are visible)
5. Remove bStateSave or set it to false.
6. Run the table in yoru favorite browser again. (notice the invisible fields are now invisible)
Steps to Reproduce.
1. Initialize a Datatable with bStateSave: true and columns visible
2. Run the table in your favorite browser.
3. Change your code to have columns invisible.
4. Run the table in your favorite browser again. (notice that the invisible fields are visible)
5. Remove bStateSave or set it to false.
6. Run the table in yoru favorite browser again. (notice the invisible fields are now invisible)
This discussion has been closed.
Replies
http://datatables.net/forums/comments.php?DiscussionID=636&page=1#Item_0
State was being saved in a cookie from when I previously had the column visible, so I deleted my cookies from my browser and bStateSave registered the newly-hidden column as being hidden.