Expand Parent Node while using Load On Demand

3 posts, 0 answers
  1. Sekhar
    Sekhar avatar
    22 posts
    Member since:
    Dec 2013

    Posted 26 Dec 2013 Link to this post

    Hi,

    I am using the client side approach for load on demand. When my page first loads its shows the Root node A and when i click on node A it displays all the child nodes b,c,d and E which in turn have child nodes.

    What i want to do is when the page is loaded for the first time, the parent node A should be displayed in expanded mode., basically i want to the achieve the Client click event  programatically. How can i achieve this.


    Thank you
    -Sekhar
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 26 Dec 2013 Link to this post

    Hi Sekhar,

    Due to some timing issues in case of ServerSideCallBack ExpandeMode for the node does not expand after the postback although its child nodes are loaded. Please have a look into this help documentation.

    Thanks,
    Shinu.
     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sekhar
    Sekhar avatar
    22 posts
    Member since:
    Dec 2013

    Posted 27 Dec 2013 Link to this post

    Thank you for the info. However i had a work around for this, wherein i expanded the root node after the page loads on the client side using javascript as shown below.

    function pageLoad() {
                    var tree = $find("<%= RadTreeView1.ClientID %>");
                    tree.get_nodes().getNode(0).expand();
    }

Back to Top