my requirement is to have a custom button on each data row.
When a user clicks the button the detail row expands for that specific row only.
I am able to expand and collapse using the button, but its doing it for the entire grid.
What do i need to do to keep it to the current(selected) row.
command.Custom("View Classes").Click("showClasses");
function showClasses(e)
{
var grid = $("#Grid").data("kendoGrid");
if ("tr.k-state-selected")
{
var $link = grid.tbody.find("td.k-hierarchy-cell .k-icon");
$link.click();
}
}