Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
910
Reposition raise NullReferenceException
posted

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

Parents Reply Children