The following code works when I have one detail grid expanded. If I have multiple grids expanded, it only executes against the first detail grid. I am having trouble figuring out how to determine which grid is selected and execute the below code against that particular detail grid:
if (count === 0) {
_.each($('.tst-k-grid').data("kendoGrid")._data, function (e) {
if (e.Status !== 'E') {
e.Status = 'W';
}
});
} else if (count > 1) {
_.each($('.tst-k-grid').data("kendoGrid")._data, function (e) {
if (e.Status !== 'E') {
e.Status = 'X';
}
});
}