Vipin Menon T P
Vipin Menon T P

Reputation: 83

Issue with Kendo Grid Read action

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.

Data in 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

Answers (1)

Nemmy
Nemmy

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

Related Questions