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

Determining group level

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jmillar
Top achievements
Rank 1
jmillar asked on 04 Mar 2016, 08:58 PM

Hi there;

If I have a GridGroupFooterItem (or HeaderItem), is there an easy way for me to tell what grouping level it belongs to?

J

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 07 Mar 2016, 12:28 PM
Hello,

You can retrieve the group level by splitting the GroupIndex of the item in the following manner (like in this help article):
int level = gridGroupFooterItem.GroupIndex.Split('_').Length;

The same could be used for the GridGroupHeaderItem.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
jmillar
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or