c# - RadWindow close on Navigated page -
i open radwindow on drop down selectedindex changed , navigate window diff page.
<telerik:radwindow runat="server" id="radwindow1" navigateurl="default1.aspx" width="500px"></telerik:radwindow>
can 1 suggest..how can close radwindow1 in default1 "close" button click.
place following code inside default1
loaded inside radwindow1
.
it calls radwindow's close
function when button clicked.
inside default1
<script type="text/javascript"> function getradwindow() { var owindow = null; if (window.radwindow) owindow = window.radwindow; else if (window.frameelement.radwindow) owindow = window.frameelement.radwindow; return owindow; } function onclientclicked(sender, eventargs) { getradwindow().close(); } </script> <telerik:radbutton id="closeradbutton" runat="server" autopostback="false" text="close" onclientclicked="onclientclicked"> </telerik:radbutton>
Comments
Post a Comment