The following code works until a column header is dragged to the group-panel; then dataItem becomes undefined:
var grid = $('#grid').data('kendoGrid');
$(grid.tbody, "tr").each(function (idx, elem) {
var dataItem = grid.dataItem(elem);
}
});
I have tried changing the selector to this:
$(grid.tbody, "tr:not(.k-grouping-row)")
but without success; dataItem is still undefined.
How to get the dataItem for each row when the grid is being grouped?
Thanks
var grid = $('#grid').data('kendoGrid');
$(grid.tbody, "tr").each(function (idx, elem) {
var dataItem = grid.dataItem(elem);
}
});
I have tried changing the selector to this:
$(grid.tbody, "tr:not(.k-grouping-row)")
but without success; dataItem is still undefined.
How to get the dataItem for each row when the grid is being grouped?
Thanks