I have trouble with setting properties UltrTreeNode.Visible. Throws System.ArgumentOutOfRangeException. Code below.
Help me please :(
private void ApplyFilter() { Action<TreeNodesCollection> applyFilter = null;
applyFilter = coll => { foreach (var node in coll) { var flg = Filter(node); if (node.Visible != flg) { node.Visible = flg; // on this line the exception occurs on the last node } else { applyFilter(node.Nodes); } } };
applyFilter(checkTreeControl.ultraCheckTree.Nodes); }
private bool Filter(UltraTreeNode node) { var chk = checkOnlyDependent.Checked; return (!chk) || (chk && HasCheckedItems(node.Tag as TItem)); }
Hi Andrey,
Are you up to date on the latest version of our controls for Windows Forms? eg. 2015.1
A call stack and a sample of the behavior would also be very helpful to us. Let me know if you have any additional questions.
Hi. Thank you for your answers. Unfortunately I can't show you the whole code of that control, because it is very large and complex. StackTrace shown below
в System.Collections.ArrayList.get_Item(Int32 index) в Infragistics.Win.UltraWinTree.UltraTreeNode.get_IsLastVisibleNodeBeforeNewIsland() в Infragistics.Win.UltraWinTree.UltraTreeNode.get_NodeSpacingAfterResolvedRaw() в Infragistics.Win.UltraWinTree.UltraTreeNodeCellUIElement.get_BorderSides() в Infragistics.Win.UIElement.get_RectInsideBorders() в Infragistics.Win.UltraWinTree.UltraTreeNodeCellUIElement.PositionChildElements() в Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) в Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) в Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) в Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) в Infragistics.Win.UltraWinTree.UltraTree.SetActiveNode(UltraTreeNode node, Boolean bringIntoView, Boolean adjustHorizontalPosition, NodeActivationReason reason) в Infragistics.Win.UltraWinTree.UltraTree.SetActiveNode(UltraTreeNode node, Boolean bringIntoView, Boolean adjustHorizontalPosition) в Infragistics.Win.UltraWinTree.UltraTree.SetActiveNode(UltraTreeNode node, Boolean bringIntoView) в Infragistics.Win.UltraWinTree.UltraTree.SetActiveNode(UltraTreeNode node) в Infragistics.Win.UltraWinTree.UltraTreeNode.set_Visible(Boolean value) в Rostelecom.SinCom2.NetworkElementRegister.Dialogs.ExtendedFiltering.BaseTreeFormAnyCollection`1.<>c__DisplayClass8.<ApplyFilter>b__7(TreeNodesCollection coll) в e:\SURTS\Main\SinCom2\NetworkElementRegister\Dialogs\ExtendedFiltering\BaseTreeFormAnyCollection.cs:строка 149