AfterSelect event does not work


#1

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


#2

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