子 RadWindow 出现(或重新出现而不重新加载)时的 OnLoad 事件
我有一个运行 ASP.NET 和 Telerik 控件的网站。我有一个带有按钮的父窗口,单击该按钮时,会打开 Telerik RadWindow 作为弹出窗口。这很好用。
当您关闭子 RadWindow 然后再次单击该按钮时,它会再次正常显示 RadWindow,但我希望能够刷新子窗口中的 UpdatePanel,而不是 .reload() 方法所做的完整回发(但这会导致回发浏览器弹出窗口)。
子 RadWindow 中是否有一个事件在显示(而不是简单加载)时被触发。或者,我可以从父窗口在子窗口中触发事件吗?
I have a website running ASP.NET and the Telerik controls. I have a parent window with a button which when clicked on, opens a Telerik RadWindow as a popup. This works fine.
When you close the child RadWindow and then click the button again it displays the RadWindow again fine, but I want to be able to refresh an UpdatePanel in the child window, as opposed to a full postback which the .reload() method would do (but this cause the Postback browser popup).
Is there an event in the child RadWindow which gets fired when it is displayed (not simply loaded). Alternatively, can I fire an event in the Child window, from the Parent Window.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常,您的 RadWindow 是一个单独的页面或用户控件,每次打开它时都会重新加载。从您的父页面,您可以通过从父页面上的 RadWindowManager 访问 radWindow 对象来调用 radWindow 中的 Javascript 函数:
//该函数属于您的父页面
您还可以从 radWindow 等向后调用父页面,更多文档这里:http://www.telerik.com/help/aspnet-ajax/window-programming-calling-functions.html
Generally your RadWindow is a seperate page or user control and gets re-loaded everytime you open it. From your parent page you can call a Javascript function in the radWindow by accessing the radWindow object from the RadWindowManager on your parent page:
//this function belongs in your parent page
You can also go backwards calling the parent from the radWindow etc, more documentation here: http://www.telerik.com/help/aspnet-ajax/window-programming-calling-functions.html