This is a migrated thread and some comments may be shown as answers.

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

1 Answer 200 Views
Grid
This is a migrated thread and some comments may be shown as answers.
LT
Top achievements
Rank 1
LT asked on 30 Jun 2020, 04:34 PM

Hi,

I'd like to implement remote group paging, as seen here: https://demos.telerik.com/kendo-ui/grid/grouppaging

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? 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 02 Jul 2020, 01:00 PM

Hello,

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.

Regards,
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.
Tags
Grid
Asked by
LT
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or