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

Keep expanded state from client-side

2 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marie-Eve
Top achievements
Rank 1
Marie-Eve asked on 02 Mar 2009, 07:23 PM
I have a hierarchical radgrid (3 levels). I want to keep the expanded state but i want do it only on client-side.

Somebody can help me please?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Mar 2009, 04:21 AM
Hello Marie-Eve,

Have you set the HierarchyDefaultExpanded property of the OwnerTableView of the grid? If not try setting it to true, and see if that helps you achieve the desired.
aspx:
<telerik:RadGrid ID="RadGrid2" runat="server" DataSourceID="SqlDataSource1"
  <MasterTableView DataSourceID="SqlDataSource1" HierarchyDefaultExpanded="true" Name="Master"
     <DetailTables> 
        <telerik:GridTableView DataSourceID="SqlDataSource2"  HierarchyDefaultExpanded="true" Name="Detail1" runat="server" > 
           ..... 

Thanks
Princy.
0
Marie-Eve
Top achievements
Rank 1
answered on 03 Mar 2009, 12:39 PM
Hi Princy,

Thanks to answer me.

Yes i set the HierarchyDefaultExpanded property to true. What i need is to retain the state of expanded item when i rebind my grid but i want to do it only on client side.
Tags
Grid
Asked by
Marie-Eve
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Marie-Eve
Top achievements
Rank 1
Share this question
or