Table callback earlier than CretaedRow callback

Table callback earlier than CretaedRow callback

_riki_riki Posts: 4Questions: 3Answers: 0

Hi,

Is there callback that is called when table is re initialized (not only redrawed)?

I have dynamic datatable, where rows can be added and table may be initialized with different data during page life.
I need to control that id column contains unique number, and doing that by concatenating to the id its instance number, in rowCreated callback.
I want to store existing IDs in an object, and on each row creation to go over already added IDs and add current one.
But I need to declare\initialize an object before rowCreated callback is called.

As table can be reinitialized I need to set object to empty when initialization called.
Where can I do that? Is there a callback that called when table is reinitialized, or maybe when rows are removed so I can remove IDs of deleted rows?

Thanks,
Riki.

This discussion has been closed.