Group paging of remote data with "dynamic" remote data?

2 posts, 0 answers
  1. LT
    LT avatar
    11 posts
    Member since:
    Oct 2018

    Posted 30 Jun 2020 Link to this post


    I'd like to implement remote group paging, as seen here:

    Unfortunately, my API endpoint returns "dynamic" data via a stored procedure, rather than a consistent set of columns like api/customers, so I need to hand-code each grid READ request and return a properly formatted server-response that the grid will understand. 

    I need to know what kind of READ request "payloads" (i.e. the JSON data the grid will send to the server per the grid.dataSource.transport's read URL) the grid will send to the server, code an endpoint matching that "payload", and also format the endpoint's response based on the request.

    Does anyone have an example of this? Does my question make sense? 


  2. Angel Petrov
    Angel Petrov avatar
    1153 posts

    Posted 02 Jul 2020 Link to this post


    You can check what parameters does the request to the end-point has by inspecting the requests in the browser developer console. Moreover the format of the response is specific and should be matched exactly, you can also check it in the console. If MVC or ASP.NET Core are used one can use our ToDataSourceResult metho, here is the code for the controller action.

    Angel Petrov
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top