Declined
Last Updated: 26 Aug 2021 12:01 by ADMIN
Imported User
Created on: 27 Aug 2018 18:27
Category: Data Source
Type: Feature Request
7
Allow DataSource schema.total to read from response header
The DataSource schema must be given a total value in order to page correctly. However, DataSource expects this value to come from a response body field. In some cases, we must work with systems that return the total value as a custom field in the response header. We need a way to read custom response header values. 

Yes, the DataSource transport uses jQuery.ajax, so we can implement a custom complete function to read the response headers from the jqXHR. However, complete fires AFTER schema.total is set so it does no good.
2 comments
ADMIN
Maria Ivanova
Posted on: 26 Aug 2021 12:01

Hi Folks,

We are not able to proceed without details regarding the use case and we need to close the feature request.

If you  have further inquiries feel free to submit new request

Kind Regards,
Maria Veledinova
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Angel Petrov
Posted on: 18 Jun 2021 12:51

Hello,

Could you please elaborate on what is the idea behind moving the total value in the response header? Generally if it is related to the data I it seems straight forward to move it in the response body. As for the jQuery complete for the schema.total we use the success callback which is called prior to the complete. You can execute a custom jQuery AJAX to get the total value from the header and later call our success callback with the data as shown in this example. The linked approach should help you achieve the desired goal.

Regards,
Angel Petrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.