how to get tree view height after it has been expanded?

2 posts, 1 answers
  1. khaled jendi
    khaled jendi avatar
    64 posts
    Member since:
    Mar 2010

    Posted 19 Sep 2010 Link to this post

    hi,

    how to get the height  of tree view after it has been expanded?

    and how I can expand inner node from other html button click event?
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Sep 2010 Link to this post

    Hello,

    The following client code shows how to retrieve the exact height of treeview control.

    Client code:
    function getWidth() {
        var treeView = $find("<%=RadTreeView1.ClientID%>");
        alert("height: " + treeView.get_element().clientHeight);
    }


    And for expanding the node, get the client object of node and invoke the set_expanded(true) method. The following documentation will help you in this.
    Client-Side Programming Basics
    RadTreeNode


    -Shinu.
Back to Top