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

How to Prevent Postback on Expand/Contract

2 Answers 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
WombatEd
Top achievements
Rank 1
WombatEd asked on 18 Mar 2010, 02:38 AM
I have a two-level RadGrid and I want it to expand and contract the lower level without postback.

Can anyone point me in the right direction.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 18 Mar 2010, 06:47 AM

Helllo,

Set the GridTableView.HierarchyLoadMode property to Client. In HierarchyLoadMode.Client mode, the roundtrip to the database happens only when grid is bound and thereby no postback to the server is needed to expand an item.

Checkout the topic - Hierarchy load modes.

-Shinu.

0
WombatEd
Top achievements
Rank 1
answered on 18 Mar 2010, 12:22 PM
Clarification: In my two-level hierarchy, setting GridTableView.HierarchyLoadMode=true did not work.

Setting MasterTableView.HierarchyLoadMode=true did work.
Tags
Grid
Asked by
WombatEd
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
WombatEd
Top achievements
Rank 1
Share this question
or