columns.adjust() after row(). draw()
columns.adjust() after row(). draw()
Hi Allan,
we have a case where we hide rows (we have tree hierarchy in the table).
We also have functions that updates specific rows (using datatableObj.row(....).draw()).
Everything works great, but if rows were updated (using draw) and than we fold the table the updated rows reappear after the columns.adjust() run.
We looked into it and the rows are redrawn when draw.dt event ->
"draw.dt.DTFC", function() ->
_fnDraw ->
_fnCloneLeft
I guess we miss something when we do the row draw, right?
Thanks,
Yishay
Replies
What do you mean by "fold the table"? I don't quite get what is going on I'm afraid.
Allan
Hi Allan,
we have a folding icon and according to the state of the icon we hide/show the rows which are deeper in the tree.
Thanks,
Yishay
Are they actually part of the DataTable, or just inserted into its DOM? A tree structure is not something DataTables supports out of the box, and its not something I've tried with FixedColumns, so I'm not sure what that would result in.
Allan
Hi Allan,
we solved all the issues (so we thought) and the last part is what I started this thread with.
Do you have some lead we can use?
Thanks,
Yishay
Beyond debugging the FixedColumns code to see exactly how it it working, not really I'm afraid.
Allan
Ok.
thanks,
Yishay