Hi
It seems that under certain circumstances the UltraTree does not show (!!!) all the items and may not be scrolled to. I have created a test application and it is attached. The number of odd items is 21 and even items are 22.
Using infragistics 8.1 libraries and 9.1.
This looks like a bug caused by changing the control's size in between calls to BeginUpdate/EndUpdate. If you pull the lines of code that set the control's Size out (which are unnecessary anyway since the control is docked inside a Panel right after EndUpdate is called), the bug goes away.
Of course I now that removing size setting in between Begin/End update calls will work properly.
But the actual example was created to show that there are conditions when the UltraTree does not show all the items. This is just test application and the real application we are using is much more complicated and I've diggered to find out what is actually causing this issue. I suppose that uncorrect scroll calculation is caused by control's size change, because when I've created a public method:
public void PerformResize()
{
base.OnResize(EventArgs.Empty);
}
and called it from outside the control after the control has appeared on the screen the UltraTree recalculated the scroll position correctly and all the items have appeared.
Our real application is too complex and there is no way to overcome this issue. As a workaround we are using the method I've written above.