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
Can only get the highest level to appear in the Tree
posted

I have defined NodeLayout's as follows:

NodeLayout myLayout = new NodeLayout();
myLayout.Key =
"CompanyLayout";
myLayout.TargetTypeName =
"Company";
myLayout.DisplayMemberPath =
"company_name";

 

NodeLayout myLayout2 = new NodeLayout();
myLayout2.Key =
"SiteLayout";
myLayout2.TargetTypeName =
"SecurityApp.CAPs.Model.Site";
myLayout2.DisplayMemberPath =
"site_name";

MyTree.GlobalNodeLayouts.Add(myLayout);
MyTree.GlobalNodeLayouts.Add(myLayout2);

But I'm only getting the top level Company name list in the tree display.  Not seeing any expansion icons to the left of company name.  I have checked everything I can think about.  Compared to the example in the documentation, I can't see the differance.  Any ideas on how to troubleshoot will be greatly appreciated.

Parents
  • 1670
    posted

    Hi jgreen274,

    I think the solution for your case is that you need to create those NodeLayouts and assign them to XamDataTree before setting its ItemSource. For example in the Loaded event of XamDataTree first create couple of NodeLayouts that adequate corespond to your objects and then set the ItemsSource to the XamDataTree. If you still have any difficulties please share them in order to assist you!

    Regards,

    Nikola

Reply Children