I have a Hierarchy Grid similar to https://demos.telerik.com/aspnet-core/grid/hierarchy
In my child Grid i have used a Client template to add an image which on click calls a JQuery Function. I am passing row from grid in my JQuery function. I can not use Grid function as i need to do some pre and post validation in JQuery before my Controller method is called.
How do i get the Grid Id for child grid to retrieve the row clicked in my JQuery function.
For the Parent gris i am able to achieve this using:
var tr = $(ev).closet("tr");
var dataItem = $("parentGridName").data("kendoGrid").dataItem(tr);
But for child grid since name is created dynamically how do i retrieve the row clicked.