Unplanned
Last Updated: 24 Feb 2025 13:10 by ADMIN
Martin
Created on: 24 Feb 2025 13:03
Category: TreeView
Type: Bug Report
0
RadTreeView: ImageKey is cleared when moving a node from one treeview to another and disposing the first
ImageKey is cleared when moving a node from one treeview to another and disposing the first.
1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 24 Feb 2025 13:10

Hello Martin,

Thank you for reporting this behavior. As a workaround, we can create a custom class that derives from RadTreeView and override the OnNotifyPropertyChanged method. In the method we can avoid executing the default code and only raise the property changed.

class CustomRadTreeView: RadTreeView
{
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
{
    //base.OnNotifyPropertyChanged(e);
    PropertyChangedEventHandler handler1 =
        (PropertyChangedEventHandler)this.Events[new object()];
    if (handler1 != null)
    {
        handler1(this, e);
    }
}

}

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!