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
45
Lazy Loading Child Nodes
posted

Is there a way to lazy load the child nodes in a XamDataTree?  Basically, I would like the XamDataTree to delay asking for the children of a particular node until the user expands that node.  

This seems to be the default behaviour the XamDataGrid, but I don't see a way to accomplish this using the XamDataTree.

 

Thanks,

-David Paquette

Parents
No Data
Reply
  • 6759
    Offline posted

    Hello dpaq,

    XamDataTree does not support lazy loading out of the box, however you could hook up to XamDataTree.NodeExpansionChanged event and load your data in it. You should keep at least single element in your child collections which will make xamDataTree to show the expansion indicator.

    I have attached a sample solution you could take a look at!

    HTH

    DataTreeLazyLoading.zip
Children
No Data