Telerik Chart - stop passing parameters through query string

2 posts, 0 answers
  1. Nazeem
    Nazeem avatar
    1 posts
    Member since:
    Jul 2018

    Posted 23 Sep 2020 Link to this post

    How to stop passing parameter through query string ?

    CSHTML:

    @(Html.Kendo().Chart<UserWidgetFilterParameter>

    .Read(read => read.Action(Model.actionMethod, Model.actionController, _recordValidationParameter).Type(HttpVerbs.Post))

    Controller:

    [HttpPost]

    public JsonResult AccountRecordWidgetData(UserWidgetFilterParameter objwidgetParament1)

    Parameters passing as below:

    http://localhost:52670/Home/AccountRecordWidgetData?Jurisdiction=All&Regime=8&Filer=All&FilerGroup=All&WidgetId=1&UserWidgetID=211&F_Year=2020

  2. Tsvetomir
    Admin
    Tsvetomir avatar
    837 posts

    Posted 28 Sep 2020 Link to this post

    Hi Nazeem,

    The Kendo UI Chart widgets use jQuery AJAX requests internally. Therefore, this is not a functionality that the Kendo UI team has applied, it comes built-in with the jQuery library.

    If you would like to change the behavior, declare a custom DataSource, and handle the Read operation by passing a JS function. Within the function perform a request of your choice and structure it according to your preferences.

     

    Regards,
    Tsvetomir
    Progress Telerik

    Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Back to Top