Unable to expand a branch on client side

2 posts, 0 answers
  1. AK
    AK avatar
    1 posts
    Member since:
    Oct 2010

    Posted 27 Oct 2010 Link to this post

    Hi,

    I have a Treeview control nested inside a RadComboBox. The Expand mode is ServerSideCallBack. I want to select a node in the tree through javascript. But the branch for that node is not expanded. I know all the ancestors of that node. So I tried to expand that branch starting from the top level parent. I use the following piece of code to expand the parent.

    if

     

    (parentNode != null && !parentNode.get_expanded()) {

     

    _treeFirst.trackChanges();

    parentNode.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ServerSideCallBack);

    parentNode.set_expanded(

    true);

     

    _treeFirst.commitChanges();

    }


    This expands only the second level parent (the first level parent is already there and expanded on the initial load). I am not able to expand further from the second level. Please help!!
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 02 Nov 2010 Link to this post

    Hi AK,

    Could you please, try expanding the new level on clientNodePopulated event instead synchronously?

    Hope this is going to help you!


    Regards,
    Nikolay Tsenkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top