Get id when a custom command is clicked in Kendo grids
Quick code tip for getting the row data from a custom command button in Kendo UI grids. This is useful for intercepting a delete event or any custom actions you have set up on a Kendo grid.
In the JavaScript function above, id
will contain the value of the EntityId
column for the row of the custom button clicked. This is great because you don’t have to make your grid selectable for this to work.
Here is how the event would be triggered when using the Kendo MVC wrappers: