Hi Ondrej,
Thanks for your patience.
We have analyzed the reported issue with “CheckBox state is updated incorrectly”. On switching to blank view, the usercontrol is unloaded but the SfTreeGrid control is not disposed, due to which events are not unwired for the treegrid view. This causes the issue with updating CheckBox state. So we suggest you to dispose the SfTreeGrid properly when usercontrol is unloaded. Please refer to the below code snippet
|
public partial class TreeView
{
public TreeView()
{
InitializeComponent();
this.Unloaded += TreeView_Unloaded;
}
private void TreeView_Unloaded(object sender, System.Windows.RoutedEventArgs e)
{
this.SfTreeGrid.Dispose();
this.Unloaded -= TreeView_Unloaded;
}
} |
Also please find the modified sample from the link below
Please let us know, if you require any further assistance on this.
Regards,
Mohanram A.