Issues drawing headers when using FixedColumns and manually paging (using ajax)
Issues drawing headers when using FixedColumns and manually paging (using ajax)
AdamR
Posts: 10Questions: 0Answers: 0
We have a complex set of business needs that require us to use both a frozen left column, top row and horizontal paging in our DataTables implementation. So our situation is such that the number of columns require paging, not the rows.
To accomplish this, we created some custom paging and are successfully repopulating the datatable itself (provided we leave off the FixedColumn call) - both the headers and columns. When we implement FixedColumns however, we can see on page changes (ajax) that the header displays correctly for a brief second but then always seems to revert back to the headers that appeared on the first page load.
We have tried several different ways to manually force the FixedColumns code to grab the new data without success. Is there a function we should be using to force FixedColumns to read from the pre-cloned table (again, the header appears to render correctly with FixedColumns disabled) on ajax updates that affect column headers. This seems to be our last issue, the data and row groupings seem to be loading/changing correctly when the pages change.
Thanks for any guidance you can lend us on this,
Adam
To accomplish this, we created some custom paging and are successfully repopulating the datatable itself (provided we leave off the FixedColumn call) - both the headers and columns. When we implement FixedColumns however, we can see on page changes (ajax) that the header displays correctly for a brief second but then always seems to revert back to the headers that appeared on the first page load.
We have tried several different ways to manually force the FixedColumns code to grab the new data without success. Is there a function we should be using to force FixedColumns to read from the pre-cloned table (again, the header appears to render correctly with FixedColumns disabled) on ajax updates that affect column headers. This seems to be our last issue, the data and row groupings seem to be loading/changing correctly when the pages change.
Thanks for any guidance you can lend us on this,
Adam
This discussion has been closed.
Replies
We can put up an example somewhere accessible if that would be helpful to try diagnose.