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

RadTreeNode Selected PropertyChanged is "IsSelected"

3 Answers 40 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Paul Ramsperger
Top achievements
Rank 1
Paul Ramsperger asked on 19 Mar 2011, 06:08 PM
I've noticed a discrepancy when using the PropertyChanged event on the RadTreeNode and listening for the Selected property name.

The property name value that comes through is "IsSelected", not the actual name of the Selected property. Is there a reason for this?

Simple way to see, add one node to a treeview and a handler for the PropertyChanged event on the node.
Select the node and you'll see "IsSelected" as the propertyName in the PropertyChangedEventArgs.

This caused an issue when I'm using reflection to determine property names with changes and will break a lot of data binding scenarios when you're not using specific strings.

3 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 20 Mar 2011, 10:42 PM
Hello Paul,

Pre-Q1 2011, if I remember correctly the property was called IsSelected. Now the property is called Selected so I agree that this should be changed. Perhaps it was left to stop additional breaking changes, but you're right that it needs to match.
Regards,
Richard
0
Svett
Telerik team
answered on 23 Mar 2011, 03:28 PM
Hello Guys,

@Richard: The property has not been changed in the latest version. The property is called Selected.
@Paul: We misspelled the name of the property  when we redesigned the PropertyChanged event. It is a known issue that we have already addressed for the upcoming service pack.

All the best,
Svett
the Telerik team
0
Richard Slade
Top achievements
Rank 2
answered on 23 Mar 2011, 03:35 PM
@Svett - Thanks for correcting me on this.
Richard
Tags
Treeview
Asked by
Paul Ramsperger
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Svett
Telerik team
Share this question
or