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

Trigger server side NodeExpand/NodeCollapse from Clientside

2 Answers 30 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
jing
Top achievements
Rank 1
jing asked on 24 Nov 2010, 08:45 AM
Hi,

Is there a way to trigger a postback from the OnClientNodeExpanding and OnClientNodeCollapsing? The reason is i have 5000 of nodes and had to check for childnodes for every nodes.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Nov 2010, 10:41 AM
Hello Jing,


If you want to fire NodeExpand/NodeCollapse events when expanding/collapsing the node, then set the ExpandMode property of node to "ServerSide".


See the demo: TreeView / Load on Demand Modes



-Shinu.
0
jing
Top achievements
Rank 1
answered on 24 Nov 2010, 10:45 AM
No other way to use OnClientNodeExpanding and OnClientNodeCollapsing to trigger postback? Thanks
Tags
TreeView
Asked by
jing
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
jing
Top achievements
Rank 1
Share this question
or