Remove newly added entry but leave node checked?

2 posts, 0 answers
  1. Bob
    Bob avatar
    46 posts
    Member since:
    Apr 2012

    Posted 08 May 2014 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 May 2014 in reply to Bob Link to this post

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