This is a migrated thread and some comments may be shown as answers.

Expanded - Client side

2 Answers 29 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
César
Top achievements
Rank 1
César asked on 10 Dec 2013, 03:59 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 11 Dec 2013, 02:43 AM
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.
0
César
Top achievements
Rank 1
answered on 11 Dec 2013, 10:34 AM
It works.

Thanks
Tags
DropDownTree
Asked by
César
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
César
Top achievements
Rank 1
Share this question
or