Changing DT_RowId in the create event
Changing DT_RowId in the create event
Hopefully a quick question . . .
If I change DT_RowId
in the create event, the ID is not written to the row id in the DOM. Is this working as designed?
Background to the question: I initialise the table from JSON that includes an id
field for each row. When adding a row, I compute the next free id
in my dataset, and set DT_RowId
to that value in the create event function. However, the value does not get written to the DOM - instead I get something like tr id="15686309084190"...
.
I can circumvent this by recreating the entire table from my updated dataset, but this seems like overkill!
Answers
I now realise I should use the
preSubmit
event as documented here.