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

how to get the selected value of Drop down tree client saide

1 Answer 200 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
NA
Top achievements
Rank 1
NA asked on 27 Jan 2014, 01:53 PM
how to get the selected value of Drop down tree client said event [without check box and Auto post back]

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Jan 2014, 03:26 AM
Hi,

Please have a look into the following code snippet to get the selected node value and text from client side.

ASPX:
<telerik:RadDropDownTree ID="RadDropDownTree1" runat="server" DataFieldID="id" DataFieldParentID="parentid" DataTextField="text" DataValueField="id" DataSourceID="SqlDataSource1" OnClientEntryAdded="OnClientEntryAdded1">
</telerik:RadDropDownTree>

JavaScript:
<script type="text/javascript">
    function OnClientEntryAdded1(sender, args) {
        alert("Text :" + args.get_entry().get_text());
        alert("Value :" + args.get_entry().get_value());
    }
</script>

Let me know if you have any concern.
Thanks,
Shinu.
Tags
DropDownTree
Asked by
NA
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or