Client Databinding using GET instead of POST

3 posts, 1 answers
  1. Jason
    Jason avatar
    29 posts
    Member since:
    Aug 2009

    Posted 16 Aug 2018 Link to this post

    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. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    4533 posts

    Posted 20 Aug 2018 Link to this post

    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.
  3. Jason
    Jason avatar
    29 posts
    Member since:
    Aug 2009

    Posted 23 Aug 2018 Link to this post

    thanks that's exactly what i was looking for.
Back to Top