Hi, I have attached your modified sample (some property and few line of code).
Steps to reproduce the problem:
1. click on Node0
2. scroll to Node15
3. click on Node15
Please let me know if you need further explanation.
|
private void MultiColumnTreeView1_MouseUp(object sender, MouseEventArgs e)
{
if (this.multiColumnTreeView1.GetNodeAtPoint(e.Location) != null)
{
Syncfusion.Windows.Forms.Tools.MultiColumnTreeView.TreeNodeAdv node = multiColumnTreeView1.GetNodeAtPoint(e.Location);
if (!node.Expanded)
node.Expand();
else
node.CollapseAll();
}
}
|
Thank you, it solved the problem!
Hi MateThank you for your update.We have checked your sample and this reported problem occurs due to using NodeMouseClick event to expand the Selected Node.DetailsWhen TreeNodeAdv is expanded, it will be navigated to top most position and NodeMouseClick event will be raised before Node is selected, expanded node is displayed in Top and Node in mouse pointer position is gets selected and so it appears as selection problem. This reported requirement needs to be achieved by handling MouseUp event. Kindly refer below codes.Code Snippet: [C#]
private void MultiColumnTreeView1_MouseUp(object sender, MouseEventArgs e){if (this.multiColumnTreeView1.GetNodeAtPoint(e.Location) != null){Syncfusion.Windows.Forms.Tools.MultiColumnTreeView.TreeNodeAdv node = multiColumnTreeView1.GetNodeAtPoint(e.Location);if (!node.Expanded)node.Expand();elsenode.CollapseAll();}}We have also modified the sample based on this.Sample: MultiColumnTreeView_UpdatedKindly check with above solution and let us know if it helps.RegardsKannan
Steps to reproduce (based on your October 26, 2017 06:03 AM sample):
1. click on Node0
2. click on Node15
3. click on Node0 to close. Nothing happen.
|
if (this.multiColumnTreeView1.GetNodeAtPoint(e.Location) != null)
{
Syncfusion.Windows.Forms.Tools.MultiColumnTreeView.TreeNodeAdv node = multiColumnTreeView1.GetNodeAtPoint(e.Location);
if (!node.Expanded)
node.Expanded = true;
else
node.Expanded = false;
} |
Perfect, thank you!