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

    Hi,

     Based on parent dropdowntree i have to bind child dropdowntree.

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

     

    i used

    dd.DataSource=Nothing

    dd.Databind()

    but it not working

     

     

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    833 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:
    RadDropDownTree2.EmbeddedTree.Nodes.Clear();

    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.

    Regards,
    Ivan Danchev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top