Parameter should be "row" instead of "id" in the doc of Selection.events.afterSelect

https://docs.dhtmlx.com/suite/selection/api/selection_afterselect_event/

the parameters “id” should be “row”.

I tested it in grid.tree mode, not the regular grid. So, this could occur specifically in this mode.

Hello.

Please, try to refer to the selection API in the Grid section: