when I use onclientclose = "Close" that time,
it closes without postback which what I want, BUT, when page postbacks later if any click event,
I see that Radwindow back like I never closed it.
.I have also put .visibleonpageload = false on page load
on code behind and that seems to be working fine, but not sure if
this is a proper way to
handle this or not since I was actually had that on the client side too..
. What I need to do? any idea?
<
telerik:RadWindowManager
Behaviors
=
"Close, Move, Resize,Maximize"
ID
=
"RadWindowManager"
DestroyOnClose
=
"true"
runat
=
"server"
IconUrl
=
"http://www.telerik.com/favicon.ico"
Modal
=
"true"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"winConfirmDelete"
VisibleOnPageLoad
=
"false"
runat
=
"server"
Title
=
"Confirm Delete"
VisibleStatusbar
=
"false"
CssClass
=
"radWindow"
Width
=
"300"
Height
=
"175"
Skin
=
"Windows7"
onclientclose
=
"Close"
>
<
ContentTemplate
>
<
table
width
=
"100%"
cellpadding
=
"0"
cellspacing
=
"0"
>
<
tr
>
<
td
colspan
=
"2"
>
<
br
/>
<
p
style
=
"text-align: center"
>
<
asp:Label
ID
=
"lblConfirmResult"
runat
=
"server"
CssClass
=
"validationWarning"
Text
=
"Are you sure you want to delete this?"
/></
p
>
<
p
style
=
"text-align: center"
>
<
telerik:RadButton
ID
=
"btnConfirmDelete"
runat
=
"server"
Text
=
"Delete"
OnClick
=
"btnConfirmDelete_Click"
/>
<
telerik:RadButton
ID
=
"btnConfirmCancel"
runat
=
"server"
Text
=
"Cancel"
OnClick
=
"btnConfirmCancel_Click"
/>
</
p
>
</
td
>
</
tr
>
</
table
>
</
ContentTemplate
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
// have these inside the javascript stuff..
//close without postback.
function Close(sender, eventArgs) {
sender.close();
}