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
110
Alternative to Odata for Load on Demand
posted

We need to lazy load our child data on a hierarchical grid.  We don't use Odata services and had no plans to support it.  

What are other alternatives for lazy loading the child band?  Can we manipulate the URL that is called whenever child data is required?

Thanks,

-Shane

Parents
No Data
Reply
  • 24671
    Verified Answer
    posted

    Hi Shane,

    if you use the MVC wrapper , load on demand comes out of the box for you. you can refer to our online samples for that. 

    But if you plan to use your own services or backend other than ASP.NET MVC, you should get the parameters from the URL and return the data for the respective path:

    http://samples.infragistics.com/jquery/hierarchical-grid/BindChild?path=ProductID:1&layout=ProductInventories

    So basically the path specifies where the child data is located in your hierarchical data structure. the above means give me all ProductInventories for the Products where ProductID = 1. 

    For a three-level or more grid, this becomes:

    http://samples.infragistics.com/jquery/hierarchical-grid/BindChild?path=ProductID:1/InventoryID:2&layout=ProductInventoryDetails

    Which basically says "Give me the inventory details for the inventory with ID 2, which is a child of the product with ID 1".

    The URLs above are generated by the igHierarchicalGrid, and after it sends the requests, you would need to parse the URLs and find the data and return JSON which specifies the data for a single flat grid - that is, as if you are binding to the flat grid for the respective children at that path.

    Hope it helps. Thanks,

    Angel 

Children
No Data