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

[Solved] Hierarchy - Limit to a single expanded row

2 Answers 170 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 2
Jason asked on 30 Dec 2009, 02:44 PM
Hi,

I would like to limit the number of rows expandable in my grid to a single row.  My solution has a RadGrid with a NestedViewTemplate.  When a user selects the row and it is expanded I'd like to collapse any other rows that are already expanded. 

I'd like to do that on the client side before the new row is expanded and databound.  I've tried the client-event OnGroupExpanded but thats not the event being fired.

Thanks
Jase

2 Answers, 1 is accepted

Sort by
0
Jason
Top achievements
Rank 2
answered on 30 Dec 2009, 02:48 PM
Hi,

I've found the client-event OnHierarchyExpanding.  But I could do with some help putting the javascript together.

Thanks
Jase

 

0
Accepted
Daniel
Telerik team
answered on 30 Dec 2009, 02:57 PM
Hello Jason,

I recommend you try the following approach:
Single expand in hierarchical grid

Let me know whether this helps.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Jason
Top achievements
Rank 2
Answers by
Jason
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or