Hi,
In my application I open a pop-up window on click of a button.
the window is declared as below:
The code that i use to open the window:
I have several windows on my page that behave differently, so I find the window by the window ID.
On my pop-up page I have an update and a cancel button.
When the user clicks update I close the window and refresh a grid on the parent page in my clientclose event.
If the user cancels out of the pop-up window and click the button to open the pop-up again everything works fine, howvere if the user clicks the update button and then clcik the button on the parent page to go back to the pop-up the window takes really long to load.
Is there something I am doing wrong here. Any thoughts will be appreciated.
Thanks!
In my application I open a pop-up window on click of a button.
the window is declared as below:
<
telerik:RadWindow
ID
=
"RadWindowDialog"
runat
=
"server"
Title
=
"Test"
DestroyOnClose
=
"false"
VisibleTitlebar
=
"false"
ReloadOnShow
=
"true"
ShowContentDuringLoad
=
"false"
OnClientClose
=
"OnClientClose"
Width
=
"525px"
Height
=
"575px"
Modal
=
"true"
>
</
telerik:RadWindow
>
The code that i use to open the window:
function ShowEditForm(id, btn, act) {
var oWnd = $find("<%=RadWindowDialog.ClientID%>");
oWnd.setUrl("Contact.aspx?Contact=" + id + "&Button=" + btn + "&Act=" + act);
oWnd.show();
return false;
}
function OnClientClose(args) {
var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
var arg = args.argument
if (arg) {
ajaxManager.ajaxRequest("Rebind");
}
else {
}
}
I have several windows on my page that behave differently, so I find the window by the window ID.
On my pop-up page I have an update and a cancel button.
When the user clicks update I close the window and refresh a grid on the parent page in my clientclose event.
If the user cancels out of the pop-up window and click the button to open the pop-up again everything works fine, howvere if the user clicks the update button and then clcik the button on the parent page to go back to the pop-up the window takes really long to load.
Is there something I am doing wrong here. Any thoughts will be appreciated.
Thanks!