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

SelectedNodes.Clear Not working when MultiSelect = false

1 Answer 26 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 31 Oct 2013, 04:02 PM
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

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 05 Nov 2013, 08:33 AM
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 >>
Tags
Treeview
Asked by
Kim
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Share this question
or