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

Get full path using Indeterminate checkbox mode

1 Answer 60 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Tony Vainikos
Top achievements
Rank 1
Tony Vainikos asked on 16 Nov 2013, 01:00 AM
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.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 19 Nov 2013, 05:56 AM
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.
Tags
DropDownTree
Asked by
Tony Vainikos
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or