中止 ASP.Net UpdatePanel 或 Telerik RadAjaxPanel 时出现问题

发布于 2024-09-12 00:40:31 字数 355 浏览 1 评论 0原文

我一直在努力解决一个问题。我有一组加载速度相当慢的嵌套数据重复器,需要几分钟才能完全渲染。我需要一个取消按钮。

首先,我尝试了一个简单的更新面板,在执行 abortPostBack 的 updateprogress 中带有取消按钮。它会隐藏更新面板,但要等到数据重复器完成后才能在页面上执行任何操作。

我们有 Telerik AJAX 控件,因此,希望它们更先进,我现在将其包装在 RadAjaxPanel 中。这似乎有同样的问题。我什至尝试将 ajaxManager.ajaxRequest 发送回服务器并设置一个 bool 来尝试中止数据绑定,但在数据绑定完成之前服务器不会捕获该事件。

关于如何对大量嵌套数据重复器进行响应式取消有什么想法吗?

I've been trying to solve a problem. I have a rather slow loading set of nested datarepeaters that take a couple minutes to fully render. I need to have a cancel button.

First I tried a simple updatepanel with a cancel button in an updateprogress that performed an abortPostBack. It would hide the updatepanel but wait until the datarepeater was done before you could do anything on the page.

We have the Telerik AJAX controls so, hoping they're more advanced, I've now wrapped it up in a RadAjaxPanel. This seems to have the same issue. I've even tried firing an ajaxManager.ajaxRequest back to the server and setting a bool to try and abort the databinding, but that event isn't caught by the server until the databinding completes.

Any ideas on how to get a responsive cancel to a large set of nested datarepeaters?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

┼── 2024-09-19 00:40:31

我认为您可以仅在到达服务器之前取消来自 Telerik ajax 面板或 ajax 管理器的 ajax 请求,即通过设置 args.set_cancel(true) 在两者的 OnRequestStart 客户端事件内取消 ajax 请求。

迪克

I think that you can cancel the ajax request from Telerik ajax panel or ajax manager only before it reaches the server, i.e. inside the OnRequestStart client event of both by setting args.set_cancel(true).

Dick

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文