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

Select and expand group in grid

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
HSLaw
Top achievements
Rank 1
HSLaw asked on 02 Apr 2010, 09:21 AM
Hi,

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?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 07 Apr 2010, 01:11 PM
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:

http://www.telerik.com/help/aspnet-ajax/grdcustomizegridgroupheaderitem.html

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.

Greetings,
Yavor
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.
Tags
Grid
Asked by
HSLaw
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or