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

2 posts, 0 answers
  1. NA
    NA avatar
    39 posts
    Member since:
    Aug 2013

    Posted 27 Jan 2014 Link to this post

    how to get the selected value of Drop down tree client said event [without check box and Auto post back]
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Jan 2014 in reply to NA Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top