Expecting row number 3 to become red, instead number 2 is red.
This approach may look a bit strange, but I need to validate the cells before table is saved to DB. But when I am trying to validate them under the save button handler, validateCells() is too slow and first it saves and then validates (even if I await it). So I decided to make validation after editing and changing table structure (removing or adding rows).
I think you can try two things here. First one is to convert rows from visual rows to physical rows (or vice versa) using toVisualRow or toPhysicalRow methods.
Thanks Adrian, I am wondering why it happens though. afterRemoveRow’s name would indicate that the row was already deleted, so physical indexing should equal to visual, am I not right? That is why I opened this issue as it seems to me that maybe reindexing does not happen. Or maybe that is my lack of understanding.
Regarding the timeout - I am really hesitant of setting any hard coded value as once I have table of 10 entries, and the other time it would be 500. Is there any hook, or sth that would allow me to actually wait until .validateCells() has finished?