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

OnHierarchyExpanding not called

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 06 Jan 2009, 12:45 PM
Hi,
I have a RadGrid with a NestedViewTemplate. To avoid multiple rows expanded at once, I have implemented a function wich expands a row if it is selected. This works just as expected. My problem is, when  I click the expand/collapse button I can still expand other rows. To avoid this, I tried to use the "OnHierarchyExpanding" client event. Unfortunately the event handler is never called.
What could be a reason for that?

Best regards,
Robert

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Jan 2009, 05:22 AM
Hi Robert,

Try setting the HierarchyLoadMode property to Client and see whether the OnHierarchyExpanding client event is getting fired.

ASPX:
 <MasterTableView   Name="RadGrid1"  HierarchyLoadMode="Client" DataSourceID="SqlDataSource1" > 
 

Regards
Shinu
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or