Hi Petrus,
You could use the TreeViewAdv''s AfterCheck and BeforeCheck events for this purpose as shown below :
// prevCheck denotes the previously checked node
// currentCheck denotes the currently checked node
TreeNodeAdv prevCheck, currentCheck;
private void treeViewAdv1_BeforeCheck(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvBeforeCheckEventArgs e)
{
if (currentCheck!=null)
{
prevCheck = currentCheck;
Trace.WriteLine("previous checked node : " + prevCheck.Text);
}
}
private void treeViewAdv1_AfterCheck(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvEventArgs e)
{
currentCheck = e.Node;
}
Please refer to the
complete sample attached that illustrates this, and let me know if it meets your requirements. We appreciate your interest in Syncfusion products.
Regards,
Guru Patwal
Syncfusion, Inc.