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

unGroup event simulation

1 Answer 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 28 Jan 2017, 03:19 PM

accoring to the documentation the grid has a group event, but no unGroup event.

How can I detect if a grid is in a grouped state?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 31 Jan 2017, 06:06 PM
Hi Morten,

The group event is fired with each change in the Grid grouping state, meaning that it is fired when the Grid is ungrouped, too. You can determine if there are any groups in the Grid when the event is fired, by checking the e.group argument:
http://dojo.telerik.com/ajIZA

If you also want to know when the number of groups decreases or increases, you can store a variable that keeps the last number of groups and compare it to the number of groups when a new grouping action occurs.

Regards,
Tsvetina
Telerik by Progress
Try our brand new, jQuery-free Angular 2 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
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Tsvetina
Telerik team
Share this question
or