Issues drawing headers when using FixedColumns and manually paging (using ajax)

Issues drawing headers when using FixedColumns and manually paging (using ajax)

AdamRAdamR Posts: 10Questions: 0Answers: 0
edited June 2012 in DataTables 1.9
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

Replies

  • AdamRAdamR Posts: 10Questions: 0Answers: 0
    For clarity, we are successfully using Fixed Columns & Row Grouping by implementing new FixedColumns() in the dataTables.fnInitComplete. We have no issues displaying the grid w/ the row grouping, fixed column. Our issue arises when we try to dynamically reload dataTables w/ our own paging (ajax calls) such that although the data updates correctly, the headers appear to never change. Any insight would be greatly appreciated.

    We can put up an example somewhere accessible if that would be helpful to try diagnose.
This discussion has been closed.