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

Rad Drop down tree how to get chaild that parent node selected value client said code

1 Answer 189 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
NA
Top achievements
Rank 1
NA asked on 30 Jan 2014, 12:06 PM

Rad Drop down tree how to get child that parent node selected value  client said code[ex: i selected child node how to get the that parent node value and child node  selected value  in client said code ]....
pls help me......

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Jan 2014, 08:39 AM
Hi,

Please have a look into the following code snippet which works fine at my end.

JavaScript:
<script type="text/javascript">
    function OnClientEntryAdded1(sender, args) {
        var path = args.get_entry()._fullPath;
        var nodes = path.split("/");
        if (nodes.length >1)
            alert("parentnode :" + nodes[0]);
        var item = sender.get_embeddedTree().findNodeByText(args.get_entry().get_text());
        if (item._hasChildren() == true) {
            alert("ChildNodes");
            for (var i = 0; i < item._getChildElements().length; i++) {
                alert(item._getChildElements()[i]._item.get_text());
            }
        }
    }
</script>

Thanks,
Princy.
Tags
DropDownTree
Asked by
NA
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or