UpdatePanel.Update() 的 RadAjaxPanel 版本?

发布于 2024-08-03 19:58:15 字数 81 浏览 3 评论 0原文

我可以使用 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 技术交流群。

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

发布评论

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

评论(3

酒几许 2024-08-10 19:58:15

我在 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

清风挽心 2024-08-10 19:58:15

我建议您使用 RadAjaxManager。

它比 RadAjaxPanel 灵活得多。
这个想法是,您定义一个“触发控件”,然后定义受影响的控件。

我不确定是什么触发了你的“强制部分回发” - 但如果我假设它是一个按钮,那么你可以使用这样的脚本:

function FireButton(){

$find("<%=RadAjaxManager1.ClientID %>").ajaxRequest("IDofTheButton");
}

在管理器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:

function FireButton(){

$find("<%=RadAjaxManager1.ClientID %>").ajaxRequest("IDofTheButton");
}

And in the manager ajaxsettings you add the button as trigger, as well as the controls you want to update as "affected controls".

甲如呢乙后呢 2024-08-10 19:58:15

为了达到想要的结果,你可以调用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

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