Determining group level

2 posts, 0 answers
  1. jmillar
    jmillar avatar
    35 posts
    Member since:
    Oct 2006

    Posted 04 Mar 2016 Link to this post

    Hi there;

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


  2. Konstantin Dikov
    Konstantin Dikov avatar
    2120 posts

    Posted 07 Mar 2016 Link to this post


    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.

    Konstantin Dikov
    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
Back to Top