Remove all items from dropdowntree

2 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    13 posts
    Member since:
    Jan 2016

    Posted 30 Mar Link to this post


     Based on parent dropdowntree i have to bind child dropdowntree.

    when i select --select-- in parent dropdowntree child should be blank.


    i used



    but it not working



  2. Ivan Danchev
    Ivan Danchev avatar
    788 posts

    Posted 04 Apr Link to this post

    Hello Sandeep,

    In order to remove all nodes from a DropDownTree, you can call its EmbeddedTree NodeCollection's Clear() method as shown below:

    If you want to remove the nodes based on a selection made in another DropDownTree you can use its OnEntryAdded server-side event and call the method posted above in its handler.

    Ivan Danchev
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top