hi i am using windowmanager and radwindow to popup one div from same page.
i am able to display div as popup. but now i have one button on popup and onclicking which popuo window should close.
i tried most solutions which i got in forum but none is working.
and on server side i tried both options but not able to work .
waiting for your reply.
Thanks in advance
i am able to display div as popup. but now i have one button on popup and onclicking which popuo window should close.
i tried most solutions which i got in forum but none is working.
<
telerik:RadWindowManager
ID
=
"winmanParolee"
runat
=
"server"
ReloadOnShow
=
"false"
VisibleOnPageLoad
=
"false"
KeepInScreenBounds
=
"true"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"winPopup"
runat
=
"server"
OpenerElementID
=
"Button1"
ShowContentDuringLoad
=
"true"
KeepInScreenBounds
=
"true"
Modal
=
"true"
Width
=
"600px"
Height
=
"400px"
>
<
ContentTemplate
>
<
script
type
=
"text/javascript"
>
function Close() {
GetRadWindow().Close();
}
function GetRadWindow() {
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
</
script
>
<
div
>
My dialog content here...
<
telerik:RadSchedulerRecurrenceEditor
ID
=
"RadSchedulerRecurrenceEditor1"
runat
=
"server"
>
</
telerik:RadSchedulerRecurrenceEditor
>
<
asp:Button
ID
=
"Button3"
runat
=
"server"
Text
=
"Close"
OnClick
=
"close_click"
/>
</
div
>
</
ContentTemplate
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
and on server side i tried both options but not able to work .
protected void close_click(object sender, EventArgs e)
{
Label1.Text = "<
script
type
=
'text/javascript'
>Close()</" + "script>";
// Page.ClientScript.RegisterStartupScript(this.GetType(), "", "Close()",true);
}
waiting for your reply.
Thanks in advance