Expanded - Client side

3 posts, 1 answers
  1. César
    César avatar
    14 posts
    Member since:
    Sep 2013

    Posted 10 Dec 2013 Link to this post

    Hi,

    Having this piece of code:

    var selectedNode = embeddedTree.get_selectedNode();
    

    Is there any way to know if the selectedNode is expanded or collapsed?


    Regards
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Dec 2013 Link to this post

    Hi César,

    Please have a look into the following code snippet to know the selected node is expanded/collapsed.

    JavaScript:
    <script type="text/javascript">
        function OnClientEntryAdded1(sender, args) {
            if (sender.get_embeddedTree().get_selectedNode().get_expanded())
                alert("Node is Expanded");
            else
                alert("Node is Collapsed");
        }
    </script>

    Hope this will helps you.
    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. César
    César avatar
    14 posts
    Member since:
    Sep 2013

    Posted 11 Dec 2013 Link to this post

    It works.

    Thanks
Back to Top