I have Two ultra Trees on a window form. Both tress shows some Info. Now I want when I scroll one tree another tree should also scroll.
Please suggest me
Thanks in Advance.
Hello Robin,
Maybe one possible approach could be to handle Scroll() events of both controls and include the code below:
private void ultraTree1_Scroll(object sender, Infragistics.Win.UltraWinTree.TreeScrollEventArgs e) { ultraTree2.TopNode = ultraTree1.TopNode; } private void ultraTree2_Scroll(object sender, TreeScrollEventArgs e) { ultraTree1.TopNode = ultraTree2.TopNode; }
private void ultraTree1_Scroll(object sender, Infragistics.Win.UltraWinTree.TreeScrollEventArgs e)
{
ultraTree2.TopNode = ultraTree1.TopNode;
}
private void ultraTree2_Scroll(object sender, TreeScrollEventArgs e)
ultraTree1.TopNode = ultraTree2.TopNode;
Please take a look at the attached sample for more details. Other approach could be if you are using ultraTree1.PerformAction(UltraTreeAction.ScrollDown, false, false);
Regards
Have you been able to resolve your issue ? Did you have a time to take a look at the attached sample. Let me know if you have any questions