Changes to 'visible' property of a column are ignored

Changes to 'visible' property of a column are ignored

Ed_MEd_M Posts: 2Questions: 1Answers: 0

This seems odd to me. If I specify a table with 3 columns and make all of them visible, they all show. if I then update the HTML to indicate that two of the columns are NOT visible and refresh the browser, those changes do not take effect. It's almost like DataTables is caching the column definitions and not reading them each time the page is reloaded.

My whole purpose is to make my table customizable where the user can specify which columns they want to see and in which order (think SharePoint list). When they load the DataTables page, I make a non-cached AJAX call to get the column definitions as JSON and pass them to my DataTable columns. This works fine until I make one or more of the columns non visible at which point it ignores the updated column definitions coming from AJAX.

Any ideas please let me know. Thanks for your help.

Answers

This discussion has been closed.