columns.adjust() after row(). draw()

columns.adjust() after row(). draw()

yishayhyishayh Posts: 108Questions: 17Answers: 0

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

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    we fold the table the updated rows reappear after the columns.adjust() run.

    What do you mean by "fold the table"? I don't quite get what is going on I'm afraid.

    Allan

  • yishayhyishayh Posts: 108Questions: 17Answers: 0

    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

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    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

  • yishayhyishayh Posts: 108Questions: 17Answers: 0

    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

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    Beyond debugging the FixedColumns code to see exactly how it it working, not really I'm afraid.

    Allan

  • yishayhyishayh Posts: 108Questions: 17Answers: 0

    Ok.
    thanks,
    Yishay

This discussion has been closed.