How to make datasource send request parameters as JSON

0 Answers 11 Views
Grid
Evgueni
Top achievements
Rank 1
Evgueni asked on 22 Jun 2022, 11:20 PM

I have a Kendo Grid MVC with columns that need to get their unique list of multi-filter values from the server. So, I am trying to call an MVC controller method passing the field name and a set of filters.


columns.Bound(c => c.SalesRepName)

                    .Filterable(ftb => ftb.Multi(true).Search(true).DataSource(ds => ds.Custom().Transport(t => t.Read(r => r.ContentType("application/json").DataType("json").Type(HttpVerbs.Post).Action("Portfolio_Read_Filter", "Contract").Data("() => getGridFilterParameters('SalesRepName', 'portfolioGrid')")))));

No matter what I do, the datasource sends the request parameters as form instead of sending the parameters as json

How to force Kendo dataSource to send request parameters as JSON?

Thank you for you help!

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Evgueni
Top achievements
Rank 1
Share this question
or