gpt4 book ai didi

c# - Kendo Grid Read 操作问题

转载 作者:太空宇宙 更新时间:2023-11-03 13:07:41 24 4
gpt4 key购买 nike

我正在使用 Kendo Grid 加载数据。在这个特定场景中,我必须将大量数据从 Kendo Grid 传递到 Controller。

我的 Kendo 网格读取操作是这样的:

.Read(read => read.Action("BindJESummary", "JEDataView", new
{
FilterQueryId = @Model.FilterQueryId,
KnowledgeAccounts = @Model.KnowledgeAccounts,
GLAccounts = @Model.GLAccounts,
jeFilterTestingModel = Json.Encode(@Model.JEFilterTestingModelData)
}).Type(HttpVerbs.Post))

这工作正常,但是当数据太大时,它就崩溃了。它没有击中 Controller 。我们检查时,Kendo 正在 URL 中发送大量数据。

Data in URL

如何让 Kendo 将数据发送到 Post 请求正文中?

或者,是否有更好的方法来从 Kendo Grid 发出 post 请求?

最佳答案

您可以通过编辑 Web.Config 来控制最大限制数据

<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="1000000000" />
</webServices>
</scripting>
</system.web.extensions>

如果这没有帮助,试试这个

<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000"/>
</requestFiltering>
</security>

关于c# - Kendo Grid Read 操作问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30193304/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com