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
160
Search in TreeGrid (Load on Demand exmaple)
posted

In the Load on Demand example here (http://www.igniteui.com/tree-grid/load-on-demand) is it possible to create the grid using PHP and also have searching capabilities for the grid?

Thanks

Parents
No Data
Reply
  • 29417
    Offline posted

    Hello Nifty, 

    Yes. It is possible. The treegrid sends the remote request to load the data on demand in the following format : ? path = (primaryKey of root)/(primaryKey of parent)/… & depth=(depth of the currently bound level). So you’ll have that information on the server side and based on it you can return the json data which should be displayed on the related level. 

    For instance in the online sample at http://www.igniteui.com/tree-grid/load-on-demand when expanding the following request is send: ChildEmployeesOnDemand?path=381&depth=0&pk=ID&expand=true

    Where 381 is the primary key of the row and the depth of the currently expanded row, which is 0 (since this is the root level).

    On the server side based on those parameters sent as part of the query string, you can build the Json data for the particular child rows.

    For details refer to the following article from our documentation:

    http://www.igniteui.com/help/igtreegrid-load-on-demand  

    If you want to enable other remote operations like sorting, filtering or paging you would need to handle the remote operations in a similar way – by getting the related parameters from the request’s query string , applying the related operation manually on the data and returning that data in Json format to the client so the grid can bind to it.

    There’s a similar example of how remote features can be handled here:

    http://www.igniteui.com/tree-grid/remote-features  

    We plan on providing MVC wrappers for the TreeGrid that would handle remote operations out of the box, however at this time there are no plans on adding PHP wrappers.

    So you'll need to handle the server side data manipulation manually. 

    Please let me know if you have any questions. 

    Best Regards,

    Maya Kirova

     

     

Children