UpdatePanel.Update() 的 RadAjaxPanel 版本?
我可以使用 RadAjaxPanel 做什么来强制部分回发并刷新/更新其中的所有控件?我曾经使用 UpdatePanel 并调用 .Update()
What can I do with the RadAjaxPanel to force a partial postback and refresh/update all the controls inside it? I used to use an UpdatePanel and call .Update()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在 Telerik 在线文档中找到了这个主题,它几乎模仿了MS 更新面板的 UpdatePanel.Update() 方法。
迪克
I found this topic in the Telerik online docs which pretty much mimics the UpdatePanel.Update() method of the MS Update Panels.
Dick
我建议您使用 RadAjaxManager。
它比 RadAjaxPanel 灵活得多。
这个想法是,您定义一个“触发控件”,然后定义受影响的控件。
我不确定是什么触发了你的“强制部分回发” - 但如果我假设它是一个按钮,那么你可以使用这样的脚本:
在管理器ajaxsettings中,你添加按钮作为触发器,以及你的控件想要更新为“受影响的控件”。
I would recomend you to use the
RadAjaxManager
.It is much more flexible than the
RadAjaxPanel
.The idea is that you define a "triggering control" and than controls that are affected.
I'm not sure what triggers your "force a partial postback" - but if I assume that it is a button than you can a script like this:
And in the manager ajaxsettings you add the button as trigger, as well as the controls you want to update as "affected controls".
为了达到想要的结果,你可以调用ajax面板的ajaxRequest()方法。以下文章演示了类似的设置:
http://www.telerik。 com/help/aspnet-ajax/ajxinteraction Betweenpanels.html
To achieve the desired result, you can call the ajaxRequest() method of the ajax panel. A similar setup is demonstrated in the following article:
http://www.telerik.com/help/aspnet-ajax/ajxinteractionbetweenpanels.html