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().