Reputation: 83
I'm using Kendo Grid to load data. In this particular scenario, I have to pass a large amount of data from Kendo Grid to Controller.
My Kendo grid read action was like this:
.Read(read => read.Action("BindJESummary", "JEDataView", new
{
FilterQueryId = @Model.FilterQueryId,
KnowledgeAccounts = @Model.KnowledgeAccounts,
GLAccounts = @Model.GLAccounts,
jeFilterTestingModel = Json.Encode(@Model.JEFilterTestingModelData)
}).Type(HttpVerbs.Post))
This was working fine, but when the data is too large, this broke. It was not hitting controller. When we checked, Kendo was sending the large data in the URL.
How can I make Kendo to send the data in in Post request body?
Or, is there a better way to do post request from Kendo Grid?
Upvotes: 2
Views: 749
Reputation: 121
You can control max limit data by editing Web.Config
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="1000000000" />
</webServices>
</scripting>
</system.web.extensions>
and if that doesn't help try this
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000"/>
</requestFiltering>
</security>
Upvotes: 1