How to change ColumnsDefs using the ajax.url().load ?
How to change ColumnsDefs using the ajax.url().load ?
Hello there.
I have a problem with changing the ColumnsDefs using the ajax.url().load.
I have one big datatable on webpage and block of filters, which changes the url and ajax.load it. There are a lot of data in some columns, so I want to give users the control to show full data in cells or part of it (suppose those cells have class 'not-extended'). By default users see part of data, when the page will be rendered. By clicking the button, user will have the ability to see full data in cells (this button remove class 'not-extended' for the whole table). The problem is when I'm trying to get the another page or filter data (using the ajax.load() function) - the data in columns will be partly visible, i.e. the cells have class 'not-extended' (even if the user clicked the button for full view)).
Is there any solution for this problem?
Answers
As far as I know
not-extended
is not a Datatables class. So it would be something you are setting. Without seeing you code its hard to help. Can you provide a link to your page or a test case showing the issue?https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin