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 Joe,

    I tested this building the tree in code and the reference to the XamTree was created as expected. If you have a chance please review the attached sample to see if you can pinpoint a difference in you code causing this issue. The attached project was tested using version 10.3.20103.1006.

    Please let me know if I can be of further assistance.

     Sincerely,

    Valerie

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    BuildInCode.zip
Children
No Data