AfterSelect event does not work

Hi.

I cannot get all selected rows after ‘AfterSelect’ events.
Variable ‘row’ returns only onw row.
grid.selection.getCells() returns a wrong result.

https://snippet.dhtmlx.com/3nodv1gb

For reproduce - select first row, and next SHIFT+click last row

I apologize for the delay with the reply.
Please, try to use the awaitRedraw() helper to call the code after the select rendering:
https://snippet.dhtmlx.com/kpay9xj3

1 Like