This is a migrated thread and some comments may be shown as answers.

collapseRow for Grid group rows

1 Answer 471 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 07 Dec 2017, 10:17 PM

Hi, 

I'm working on collapse/expand functionality that can be applied to all of the grids across our application. I noticed a quirk of one 'expandRow' and 'collapseRow' functions offered with the Kendo grid. These functions can both expand and collapse groupings in the grid; however, the 'expandGroup' and 'collapseGroup' functions work only for groupings, but not for rows.

Do the functions that are group specific offer extra functionality over the row expand and collapse functions that makes the expand and collapse functionality different for groups in some cases? If so, what are these cases so I can know for the future?

 

Thanks,

 

Kevin

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 Dec 2017, 11:48 AM
Hello, Kevin,

The expandRow and collapseRow methods are used to expand and collapse master rows in a hierarchical(detailed) Grids:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-expandRow

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-collapseRow

The expandGoup and the collapseGorup method are for expanding and collapsing groups in a grouped Grid:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-expandRow

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-collapseGroup

The respective method should be used only for the intended scenario. 

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or