中止 ASP.Net UpdatePanel 或 Telerik RadAjaxPanel 时出现问题
我一直在努力解决一个问题。我有一组加载速度相当慢的嵌套数据重复器,需要几分钟才能完全渲染。我需要一个取消按钮。
首先,我尝试了一个简单的更新面板,在执行 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可以仅在到达服务器之前取消来自 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