Select and expand group in grid

2 posts, 0 answers
  1. HSLaw
    HSLaw avatar
    153 posts
    Member since:
    Jan 2006

    Posted 02 Apr 2010 Link to this post


    I have a grid with grouping and pagination (grouping collapsed by default)
    and another page for user to click to come to this page.

    when user click, I will pass the ID to the grid page.
    The ID is the DataKeyValue of the Grid.

    1. Based on the ID, how can I expand the specific row based on the ID passed to here?
    2. And if the row is in another page, how can I switch the grid's page to that page after expand the row?

  2. Yavor
    Yavor avatar
    11 posts

    Posted 07 Apr 2010 Link to this post

    Hi HSLaw,

    Basically, there is no option to achieve this functionality out-of-the-box. You can use custom code to achieve the desired functionality. For example, you can get a reference to a particular group header item:

    and according to the text, set its expanded state to true. Additionally, you can move the logic in the PreRender event handler, and get a reference to all the gridGroupHeader items on the current page, to check the text, and determine the expanded state accordingly.
    I hope this information helps.

    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top