Determining group level

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

    Posted 04 Mar 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?

    J

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1800 posts

    Posted 07 Mar Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top