Hi,
I'm using UltraTree component from NetAdvantage for Windows Forms 2009.2
I have an UltraTree with the following properties
trvSteps.ViewStyle = Infragistics.Win.UltraWinTree.
ViewStyle.OutlookExpress;
trvSteps.Override.SelectionType =
SelectType.Extended;
The tree is populated with 3 nodes and each nodes has some child nodes. All are populating correctly.
On selecting an item from a list box, the contents of the tree are cleared and loaded with another set of nodes. This also works fine.
After the nodes are populated, ExpandAll() is called to view the nodes of all levels.
Problem is that when I directly click on the Collapse indicator, exception occurs. Please help.
************** Exception Text **************System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at Infragistics.Win.UltraWinTree.TreeNodeCellsCollection.GetCell(Int32 index) at Infragistics.Win.UltraWinTree.TreeNodeCellsCollection.get_Item(UltraTreeNodeColumn column) at Infragistics.Win.UltraWinTree.UltraTree.get_ActiveCell() at Infragistics.Win.UltraWinTree.UltraTreeNode.internalExpand(Boolean value, Boolean notify, Boolean updateVisibleNodes) at Infragistics.Win.UltraWinTree.UltraTreeNode.internalExpand(Boolean value) at Infragistics.Win.UltraWinTree.UltraTreeNode.set_Expanded(Boolean value) at Infragistics.Win.UltraWinTree.UltraTreeNode.Toggle() at Infragistics.Win.UltraWinTree.ExpansionIndicatorUIElement.Toggle() at Infragistics.Win.ExpansionIndicatorUIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement) at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e) at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) at Infragistics.Win.UltraControlBase.OnMouseDown(MouseEventArgs e) at Infragistics.Win.UltraWinTree.UltraTree.OnMouseDown(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
TIA,
Sheeba Y
Looks like a bug to me...you should download the latest service release, try it with that, and if the problem persists, log an incident with Developer Support.
I see the same issue. I will add a little more to the use case:
1) I edit a tree node column and then don't click anything in the tree.
2) Navigate off the tree to another editor.
3) Come back, reload the tree. All nodes are initially collapsed (default behaviour)
4) Expand a node without clicking any node and then try to collapse it just by clicking the expansion indicator.
NOTE: No node is selected in the process.
5) Get the exception that's listed above.
Workaround:
First select a node in the tree and perform the use case.