Hi,
why I am getting a NullReferenceException when calling:
foreach (UltraTreeNode nodeToMove in nodesToMove) { nodeToMove.Reposition(targetNode.Nodes); }
StackTrace:
at Infragistics.Win.UltraWinTree.UltraTreeNode.GetColumnSet(NodeColumnRelationship relationship) at Infragistics.Win.UltraWinTree.UltraTreeNode.get_DisplayColumnSetResolved() at Infragistics.Win.UltraWinTree.UltraTreeNode.get_IsLastVisibleNodeBeforeNewIsland() at Infragistics.Win.UltraWinTree.UltraTreeNode.get_NodeSpacingAfterResolvedRaw() at Infragistics.Win.UltraWinTree.UltraTreeNode.get_ItemHeightResolvedWithSpacing() at Infragistics.Win.UltraWinTree.VisibleNodesManager.RecalulateScrollSize(Boolean isInReinitialize, Boolean isInRecalculateScrollSize) at Infragistics.Win.UltraWinTree.VisibleNodesManager.RecalulateScrollSize() at Infragistics.Win.UltraWinTree.VisibleNodesManager.get_ScrollSize() at Infragistics.Win.UltraWinTree.UltraTree.get_AllVisibleNodesAreInView() at Infragistics.Win.UltraWinTree.UltraTree.Infragistics.Win.UltraWinTree.IScrollableControl.MaxSize(ScrollBarType scrollBarType) at Infragistics.Win.UltraWinTree.ScrollbarControl.RecalcVScroll() at Infragistics.Win.UltraWinTree.ScrollbarControl.get_VScrollRect() at Infragistics.Win.UltraWinTree.UltraTree.get_ViewableArea() at Infragistics.Win.UltraWinTree.UltraTree.get_AllVisibleNodesAreInView() at Infragistics.Win.UltraWinTree.UltraTree.Infragistics.Win.UltraWinTree.IScrollableControl.MaxSize(ScrollBarType scrollBarType) at Infragistics.Win.UltraWinTree.ScrollbarControl.RecalcVScroll() at Infragistics.Win.UltraWinTree.TreeNodesCollection.Remove(UltraTreeNode value, Boolean verifyBound) at Infragistics.Win.UltraWinTree.TreeNodesCollection.Remove(UltraTreeNode value) at Infragistics.Win.UltraWinTree.UltraTreeNode.InternalRemove() at Infragistics.Win.UltraWinTree.UltraTreeNode.Reposition(TreeNodesCollection newNodesCollection, Int32 index) at Infragistics.Win.UltraWinTree.UltraTreeNode.Reposition(TreeNodesCollection newNodesCollection) at .....
The tree is not databind
Thanks in advance,
Michael
Even when I replace the logic with node.Remove(), afterwards target.Nodes.add(node) does not work.
Same error message as above when while calling node.Remove().
Hi Michael,
What version (and build) of the toolset are you using for this application?
I was not able to reproduce the issue you describe here using a simple test application (see attached) and the latest build of version 14.2.
See if you can either modify the attached project to get the exception to occur and repost, or attach your application, and we'll try to figure out what's going on.
I am using 15.1.
Meanwhile the error does not occur if I remove the tree.BeginUpdate() and tree.EndUpdate().
So it seems another problem on my side.
I will double check with your example and come back to you if the error occurs again.
Thanks
I could not reproduce with a BeginUpdate/EndUpdate either, but if that is causing the problem, I think the bug is on our end. You should be able to use BeginUpdate/EndUpdate in that manner without any repercussions.
Please let us know if you need any more help with this, otherwise we'll close the case...thanks