Posted
on Sep 24, 2010
(permalink)
We have RadWindowManager present in the home page of our application.
<rad:RadWindowManager ID="RadWindowManager" runat="server" Behavior="default"
Height="300px"
OnClientPageLoad="noScroll" DestroyOnClose="true"
PreserveClientState="false"
ReloadOnShow="true" Width="420px"
Left="300" Top="150" InitialBehavior="None"
VisibleStatusbar="true" Modal="true" SingleNonMinimizedWindow="true"
OnClientClose="OnRadWindowClose">
</rad:RadWindowManager>
In the body of home page, we have this code
<body class="nonContentBody" onload="HomeLoaded();"
onbeforeunload="AskBeforeCloseWindow()"
Now from the content page we open the rad window instances as follows:-
function openRadWindow() {
var wnd = window.radopen("Editor.aspx, null);
return false;
}
<asp:ImageButton ID="ibtn1" OnClientClick="openRadWindow()" runat="server">
The Issue which we are facing is when we click on any item of the title bar of radwindow, The javascript function AskBeforeCloseWindow present on the home page is called.
For example when we click on the pin in button every thing is as expected. but when we click on pin out, javascript function AskBeforeCloseWindow is called. We do not want to call this function at the click of any of the item of title bar.
Is there a way out to avoid calling this function. ?