gpt4 book ai didi

c# - 如何设置超时网格或存储在 Ext.Net

转载 作者:行者123 更新时间:2023-11-30 15:24:52 26 4
gpt4 key购买 nike

我将在 ext.net 页面中显示 375 条记录,但 ext.net 网格或存储默认超时 30 秒我需要 130 秒但我无法设置超时。我的 ext.net 版本是 2.4。我该如何设置?我尝试过这种方式,但没有用。

<script type="text/javascript">
setTimeout(everything, 120000);
setTimeout(function () {
document.getElementById('WorkOrderLinesGrid').style.display = 'none';
document.getElementById('WorkOrderInvoiceStore').style.display = 'none';
}, 1200000);
</script>

最佳答案

在asp.net mvc razor语法中,像这样

    Html.X().Store().ID("store1")
.PageSize(20)
.DataSource(Model)
.Model
(
Html.X().Model()
.Fields
(
new ModelField("company", ModelFieldType.String),
new ModelField("price", ModelFieldType.Float)
)
)
.ServerProxy
(
Html.X().AjaxProxy()
.Url(Url.Action("GetDataFromSQL"))
.Timeout(120000)
)

还有,你可以看看Extend timeout for loading a store

<ext:Store runat="server">
...
<DirectEventConfig Timeout="120000" />
</ext:Store>

关于c# - 如何设置超时网格或存储在 Ext.Net,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32182611/

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