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
1483
PropertyChanged event broken in 2009.1
posted

Hi,

 I used to be able to listen to the propertychanged event to determine when a node is expanded or made visible.  The following code no longer works in V2009.1(hotfix 2012) but does work if I change my references back to V2008.2.  Is this a bug or am I doing something wrong? I would expect to see a messagebox when the root node is expanded and collapsed.  The PropertyChanged event is not firing at all during the expand.  It does fire when nodes are added to the tree.

 

      public Form1()

      {

         InitializeComponent();

         ultraTree1.PropertyChanged += ultraTree1_PropertyChanged;

 

         UltraTreeNode node = ultraTree1.Nodes.Add("TEST");

         node.Nodes.Add("child1");

      }

 

      private void ultraTree1_PropertyChanged(object sender, Infragistics.Win.PropertyChangedEventArgs e)

      {

         PropChangeInfo info = e.ChangeInfo.Trigger;

         while (info != null)

         {

            if ((PropertyIds)info.PropId == PropertyIds.IsExpanded)

            {

               MessageBox.Show("Expanding");

               break;

            }

            /* move to the next trigger */

            info = info.Trigger;

         }

      }

 

Thanks,

 Bill

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi Bill,

    I took a quick look and this appears to be a bug that was introduced recently. I am forwarding this thread over to Infragistics Developer Support so they can get it corrected.

Children