Unplanned
Last Updated: 17 Feb 2022 11:58 by ADMIN
Seyfor
Created on: 28 Sep 2018 11:42
Category: Grid
Type: Feature Request
3
Add property for default behaviour collapsed when grouping
When grouping one column on a large table, all rows (groups) are expanded by default which consumes CPU/memory. Render time grows.

Please add bool property defaultCollapsed. In this case grid would not expand all rows(groups) by default.

Current work around is to call collapseGroup, but performance would be a lot better if rows could be collapsed by default.
2 comments
ADMIN
Alex Hajigeorgieva
Posted on: 30 Nov 2018 13:18
Hello, Matjaž,

Thank you for sharing your feedback.

If this functionality is important to you, it is possible to achieve it at present using a detail template and a row template instead.

We have a runnable example in one of our forums that demonstrates how to do that with an ASP.NET for MVC Grid. 

https://www.telerik.com/forums/load-a-group-content-on-demand

Let me know in case you wish to implement the approach while the feedback item is gaining popularity and if you need assistance with that.

Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Seyfor
Posted on: 26 Nov 2018 09:46

I need to say this is really needed when data is loaded remotely (very common scenario) when you have larger tables.

For example: remote server returns this data:

{
field: "Partner",
value: "Dynamic",
aggregates: {
Debit:{sum: 10000},
Credit:{sum: 10000}
},
items: []
}

 

(Without items). But when user expand group (expandGroup event), data are loaded from server. But now, all groups are always expanded.