Hi Deepa,
I have included an example to re-create the issue I am seeing. Please do the following when running to see the issue:
1) Collapse all nodes, click the button, nodeB will be in view (works)
2) Collapse Node1, click the button, nodeB is not in view (fails)
3) Collapse Root node, click the button, nodeB will not be in view (fails)
4) Open Root and Node1, collapse Node2, click the button, nodeB will be in view (works)
In all cases above the code calls BringIntoView on nodeB. But as you will see it does not work if nodeB''s parent is expanded and nodeB''s parent''s parent is expanded.
>Hi Rich,
>
>I am afraid,I was not able to reproduce the issue.
>
>The BringIntoView expands parent nodes to make the particular node visible and also scrolls the tree such that this node is brought into view.
>
>//Here the BringIntoView() is called for parent node.
>
>private void button1_Click(object sender, System.EventArgs e)
>{
>TreeNodeAdv node=this.treeViewAdv1.Nodes[2]; node.BringIntoView();
>node.TextColor=Color.Red;
>}
>
>//Here the BringIntoView() is called for child node
>
>private void button2_Click(object sender, System.EventArgs e)
>{
>TreeNodeAdv node=this.treeViewAdv1.Nodes[2].Nodes[0].Nodes[1];
>node.BringIntoView();
>node.TextColor=Color.Blue;
>}
>
>I have attached a sample,which explains that ,if the BringIntoView() method is called for the ParentNode ,the ParentNode will not get expanded,but the node is brought into view.Whereas,if the BringIntoView() method is called for the ChildNode,the ParentNode get expanded as well as the childnode is brought into view.
>
>Please take a look at the attached sample and let me know if I had understood your problem correctly.
>
>Thanks for your interest in Syncfusion products.
>
>Kind Regards,
>
>Deepa
BringIntoView.zipTestBringIntoView.zip