SelectedNodes.Clear Not working when MultiSelect = false

2 posts, 0 answers
  1. Kim
    Kim avatar
    47 posts
    Member since:
    Jul 2013

    Posted 31 Oct 2013 Link to this post

    Hi,

    Treeview.SelectedNodes.Clear Not working when MultiSelect = false

    Don't know if this is by design or a bug but in my opinion, when you invoke Treeview.SelectedNodes.Clear whatever is selected should no longer be selected, regardless of the MultiSelect setting.

    In addition, if MultiSelect = false and you invoke Nodes.Clear(), SelectedNodes still contains an object. SelectedNodes shoud clear as well.

    -Kim
  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 05 Nov 2013 Link to this post

    Hi Kim, 

    Thank you for writing to Telerik Support.

    I can confirm this is an issue and I have logged it in our Public Issue Tracking System. You can track its progress and add your vote for it here: http://www.telerik.com/support/pits.aspx#/public/winforms/16094.

    For the time being, you can use this snippet to clear selection: 
    this.radTreeView1.SelectedNode = null;

    Your Telerik Points have been updated for this report.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Ralitsa
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top