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
105
Trouble with setting properties UltrTreeNode.Visible
posted

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));
}

Parents
No Data
Reply
  • 29185
    Offline posted

    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.

Children