Get full path using Indeterminate checkbox mode

2 posts, 0 answers
  1. Tony Vainikos
    Tony Vainikos avatar
    58 posts
    Member since:
    Jan 2009

    Posted 15 Nov 2013 Link to this post

    I have to access the entire fullpath once a user makes a selection from my dropdowntree. I know that I can do this with using .SelectedText but my REAL values I need to work with are stored in the DataValueField and using .SelectedValue only gets me the "real" checkboxed items, not the full path which might include the Parent item if its indeterminate. I've looked to see if there was a method for this, and cannot seem to find one. Can you please help, or at least show me a work around.

    Thanks.

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

    Posted 18 Nov 2013 Link to this post

    Hi ldowdell,

    The client side method get_fullPath() will give the full path of the selected entry of RadDropDownTree. Please have a look into the following code snippet to get the full path of the selected node.

    ASPX:
    <telerik:RadDropDownTree ID="RadDropDownTree1" runat="server" DataSourceID="SqlDataSource1"
        DataFieldID="id" DataFieldParentID="parentid" DataTextField="text" DefaultMessage="Choose a value"
        CheckBoxes="SingleCheck" OnClientEntryAdded="OnClientEntryAdded1">
    </telerik:RadDropDownTree>

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

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top