This is a migrated thread and some comments may be shown as answers.

Telerik Chart - stop passing parameters through query string

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nazeem
Top achievements
Rank 1
Nazeem asked on 23 Sep 2020, 06:20 PM

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

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 28 Sep 2020, 11:48 AM

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).

Tags
General Discussions
Asked by
Nazeem
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
Share this question
or