Using Kendo grid I was able to bind data and group by any column. But after grouping, if I want to collapse or expand the grouped data the uisng the arrow next to the group header, this functionality is not working consistently. if it works first time it will not work after refreshing the data on the grid and vice versa.
So you please help on this?
Thanks,
Ephrem
9 Answers, 1 is accepted
From the provided information it's not clear for us what is the exact reason for this behavior - could you please provide runable project where this issue is reproduced? This would help us pinpoint the exact reason for this behavior.
Vladimir Iliev
the Telerik team

When I look in to your script. the css class you add/remove on collapse/expand on .k-grouping-row' is not taking effect.
gridData = new kendo.data.DataSource({
data: myData,
sort: [
//sorting by some fields
],
schema: {
model: {
fields: {
Locale: { type: "string" },
//fields here
}
}
},
});
$("#myGrid").data("kendoGrid").setDataSource(gridData);
Thanks,
Ephrem
From the last response it's still unclear for us what is the reason for this behavior and I would like once again to ask you to provide a runnable project that reproduces the problem (you can create example one). Without it, we could only guess what the reason is.
Vladimir Iliev
the Telerik team

Thank you for your response, Below I am attaching a working solution to reproduce the issue I am having. To see it open the zip file attached here and run it. On the index page you will see a kendo grid and a refresh link on top of it. To reproduce the issue what you have to do is,
Group it by of the columns say by Field1 and try to collapse the grouped rows, if it works hit the refresh button above and then group again and then try to collapse it again, this time it wont work. or if it doesnt work first time, it will work after refresh.
Another issue I want to add to this is, column resizing will work on first load but it wont work after refresh.
Thanks,
Ephrem
Thank you for the provided project .
After checking it I was able to reproduce the issue on our side and it's related to the changing the dataSource of the grid, however this issue is already fixed in latest internal build (which is available for download from your account at telerik.com). For covenience I updated the provided project and attached it to the current thread.
Vladimir Iliev
the Telerik team

Is this supposed to be fixed now?

As this thread is out of the original topic, may I kindly ask you to open a new support thread for the Grid? In this way it is much easier to follow and concentrate on the particular issue which usually leads to its faster resolving.
Regards,
Vladimir Iliev
Telerik