Trigger server side NodeExpand/NodeCollapse from Clientside

3 posts, 0 answers
  1. jing
    jing avatar
    31 posts
    Member since:
    Aug 2007

    Posted 24 Nov 2010 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Nov 2010 Link to this post

    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.
  3. jing
    jing avatar
    31 posts
    Member since:
    Aug 2007

    Posted 24 Nov 2010 Link to this post

    No other way to use OnClientNodeExpanding and OnClientNodeCollapsing to trigger postback? Thanks
Back to Top