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

Remove newly added entry but leave node checked?

1 Answer 41 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 08 May 2014, 04:51 PM
We want to include a special node item at the top of the DropDownTree that when checked by the user would toggle the embedded treeview's _checkChildNodes property.  Of course, when the "special" item is checked DropDownTree automatically adds it to the Entry area.  Is it possible to remove this newly added entry but keep the node checked?

Thanks...Bob Baldwin
Trabon Solutions

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 May 2014, 10:39 AM
Hi Bob,

I guess you want to remove the text of the checked items of a RadDropDownTree from the Entry Area. Please have a look into the sample code snippet which works fine at my end.

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

JavaScript:
<script type="text/javascript">
    function EntryAdded(sender, args) {
        sender._entriesDelimiter = "";
        args.get_entry().set_text(null);
    }
</script>

Please elaborate your requirement if it doesn't help.
Thanks,
Shinu.
Tags
DropDownTree
Asked by
Bob
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or