RadTreeNode Selected PropertyChanged is "IsSelected"

4 posts, 0 answers
  1. Paul Ramsperger
    Paul Ramsperger avatar
    2 posts
    Member since:
    Sep 2009

    Posted 19 Mar 2011 Link to this post

    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.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 20 Mar 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Svett
    Admin
    Svett avatar
    728 posts

    Posted 23 Mar 2011 Link to this post

    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
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 23 Mar 2011 Link to this post

    @Svett - Thanks for correcting me on this.
    Richard
Back to Top