This is a migrated thread and some comments may be shown as answers.
Client Databinding using GET instead of POST
2 Answers 28 Views
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 2
Jason asked on 16 Aug 2018, 09:39 AM

Hi

I have a pre-built restful webapi service that has the following method

[Route("list/openquotes"), HttpGet]
public HttpResponseMessage ListOpenQuotes()

 

when i try use it in a RadGrid, the default behaviour seems to be using the POST request method.

Is there a way to force the gird use use a HTTP GET instead?

This is the setup for the Grid

<ClientSettings >
    <DataBinding Location="SetByCode" SelectMethod="ui/list/openquotes" EnableCaching="false" ResponseType="JSON" CountPropertyName="Count" DataPropertyName="Data" />
</ClientSettings>

 

I have a RadListVIew that is using HTTP GET as follows:

<DataService Location="SetByCode" DataPath="/ui/list/notifications" EnableCaching="false" ResponseType="JSON" HttpMethod="Get" CountPropertyName="Count" DataPropertyName="Data" SortParameterType="List" />

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 20 Aug 2018, 10:29 AM
Hi Jason,

I can offer three options you can consider:

 


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Jason
Top achievements
Rank 2
answered on 23 Aug 2018, 08:42 AM
thanks that's exactly what i was looking for.
Tags
Grid
Asked by
Jason
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Jason
Top achievements
Rank 2
Share this question
or