23 Apr 2012
(Link to this post)
Hi,
Can you please provide a example?
I have the following case:
I have a kendo grid with detail. The detail is another kendo grid. When I edit a field of the detail grid, I need to update something on the belongind row in the master grid, and I do that by setting the value in the dataSource of the master grid and calling sync().
The problem comes that when I sync the dataSource, it collapses all the rows. This means that i need to expand the previously expanded rows. I could not find an example on how to do this.
tried something like:
var expandedRows = $("#masterGrid").data("kendoGrid").table.find("tr.k-master-row a.k-minus").closest("tr");
$.each(expandedRows, function (index, row) {
$("#masterGrid").data("kendoGrid").expandRow(row);
});
But it does not work.
Can you help please ?
Thank you, Daniel