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
1540
XamTree property of XamTreeItem
posted

I have an XamTree to which I add the XamTreeItems in code (not Databinding).  I have found that the property xamTreeItem.XamTree doesn't get set when I add an item.  So, for all the items the XamTree property remains null.

Later sometimes when I Insert a new item the XamTree property of that item does get set.

I had expected that the XamTree property would always reference the XamTree that the XamTreeItem is a child of.

Is that not the intent?  What am I missing?

It would be nice to be able to do something like the following:

xamTreeItem.XamTree.ActiveItem = xamTreeItem;

Parents
No Data
Reply
  • 14517
    Offline posted

    Hello,

    I followed the steps you suggested and was unable to reproduce the behavior you're describing. I created a XamTree with the XamTreeItems. I implemented code to set the active node using xamTreeItem.XamTree.ActiveItem = xamTreeItem whenever a node is collapsed / expanded. The XamTree property was set on the XamTreeNode as expected.

    I have attached the sample project I used to test this.  Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.

     

    If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using.  My test was performed using version 11.1.20111.1004 in NetAdvantage for Silverlight 2011 Volume 1.

     

    If the project does show the product feature working correctly, this indicates a possible problem in the code of your application.  It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.

     

    Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.

     

    Please let me know if I can provide any further assistance.

     

     

    Sincerely,

    Valerie

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    TreeItemsProps.zip
Children