如何在关闭 telerik RadWindow 后立即调用服务器端函数?

发布于 2024-12-05 12:40:07 字数 201 浏览 6 评论 0原文

我试图在关闭 telerik RadWindow 后立即调用服务器端方法。 我有一个弹出的RadWindow,我想在弹出窗口关闭后在客户端和服务器端执行一些操作。 我一直在寻找像 OnClientClose 这样的事件,RadWindow 可以调用该事件 一种客户端方法,但我找不到。

有谁知道如何创建 OnClose 事件或者应该如何正确完成?

谢谢。

I am trying to call a server-side method immediatly after closing a telerik RadWindow.
I have a pop-up RadWindow, and I want to perform a few operations in the client-side and server-side after that pop-up window is closed.
I've been looking for an event like OnClientClose, that the RadWindow has for calling
a client-side method, but I couldn't find one.

Does anyone know how to create OnClose event or how should it be done properly?

Thanks.

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

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

发布评论

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

评论(1

抱猫软卧 2024-12-12 12:40:07

您必须有一个客户端关闭事件,并使用 __doPostBack 执行回发,或者如果页面上有 AJAX 面板控件,您可以使用其客户端 ajaxRequest< 刷新它/代码> 方法。

默认情况下,它本身不会在关闭时回发到服务器。

HTH。

You have to have a client close event, and perform a postback by using __doPostBack, or if you have an AJAX panel control on the page, you can refresh it with its client-side ajaxRequest method.

On its own, it doesn't postback to the server on close by default.

HTH.

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