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
245
Automatic load on demand issue
posted

I've looked at the sample code over here https://www.infragistics.com/samples/aspnet/hierarchical-data-grid/overview as well as the videos describing how to use the WebHierarchalDataGrid but I'm still not sure how to proceed. 

I'd like to use ObjectDataSources (instead of going directly to SQL) but the examples seem to always show retrieving ALL of the "suppliers" and "products". I'd like to call a method like GetProducts and pass in the selected supplier id. Is there a way I can tie that together (an event perhaps?)? Can I do this without posting back? 

Thank you for your help.

Parents
No Data
Reply
  • 12025
    posted

    Hello, 

    It shouldn't matter if you are using the SQLDataSource or the ObjectDataSource, as long as the relationship you create using the WebHierarchicalDataSource is correct and the ObjectDataSource is pulling the right data, you can tie it to the Hierarchical Grid and all the child records will be loaded on demand automatically.

    You mentioned that you've seen videos of it already, not sure if you've checked this one out. 

    https://www.youtube.com/playlist?list=PLDAFFE8C757FED32E

    -Taz. 

Children
No Data