I use the Radzen IDE to access a Rest Api.
The GET Calls are built to return only paginated results, so there is a server side pagination.
The pagination properties are returned in the response header.
There is no way to read the response headers using the default generated methods. There is already partial method to access the HttpRequestMessage sent to the service and we can add another partial method to access the response:
That was how I thought I would do it, but how can I access the pagination properties from the page?
The method of the datasource service that is called from the page will return a IEnumerable<EntityDto>
(This is default generated by using Swagger as datasource)
I think it doesn't make sense to add the Pagination as property to the EntityDto.
The datasource service method needs to return a tuple, doesn't it?
It is up to you how you will access that. The service generated by Radzen is a partial class and you can extend it directly in the way you need - for example you can add your own method in the partial class that will wrap the original generated method and will return the data you want.
Invoke custom method in Blazor server will list only page methods. You can use page partial class to declare and execute the new service method. Invoke data source method will not “see” your custom method since it is not part of the meta code, of course in Radzen 3.0 this will not be a problem.