Plus sign to expand node not showing when creating node on client-side

2 posts, 0 answers
  1. Polaris431
    Polaris431 avatar
    30 posts
    Member since:
    Jul 2007

    Posted 20 Jan 2009 Link to this post

    When I add a node on the client-side, I set the ExpandMode property to ServerSideCallBack. The node gets created but the plus sign next to the node does not appear. Only after refreshing the page when the tree gets reloaded will it appear. How can I get it to appear immediately after adding the node. Here is my code:

            tree.trackChanges();  
            var node = new Telerik.Web.UI.RadTreeNode();  
            node.set_value(id);  
            node.set_text(nodeName);  
            node.set_imageUrl(imageURL);  
            node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ServerSideCallBack);  
     
            nodes = tree.get_nodes();  
            nodes.insert(position, node);  
              
            var elem = node.get_element();  
            elem.setAttribute('title', description);  
            node.select();  
            node.scrollIntoView();  
            tree.commitChanges(); 
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 20 Jan 2009 Link to this post

    Hello Polaris431,

    I couldn't reproduce this problem using the current official release 2008.3 1314. I have tested in our load on demand example.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top