I'm getting this error constantly:
http://i.imgur.com/CYPdu.jpg
This happens when I click in a RadButton that fires a RadAlert using this:
My WindowManager is:
And my callback function It's:
All this code is on a page that is opened through RadWindow, and the error happens before the RadAlert it is shown.
http://i.imgur.com/CYPdu.jpg
This happens when I click in a RadButton that fires a RadAlert using this:
DirectCast
(
Me
.Page.FindControl(
"WindowManager"
), RadWindowManager).RadAlert(
"Endereço foi salvo com sucesso."
, 330, 100,
"Sucesso"
,
"alertCallBackFn"
)
My WindowManager is:
<
telerik:RadWindowManager
ID
=
"WindowManager"
runat
=
"server"
EnableShadow
=
"true"
EnableViewState
=
"false"
ReloadOnShow
=
"true"
>
<
ConfirmTemplate
>
<
div
class
=
"rwDialogPopup radconfirm"
>
<
div
class
=
"rwDialogText"
>
{1}
</
div
>
<
div
>
<
a
onclick
=
"$find('{0}').close(true);"
class
=
"rwPopupButton"
href
=
"javascript:void(0);"
><
span
class
=
"rwOuterSpan"
><
span
class
=
"rwInnerSpan"
>Sim</
span
></
span
></
a
> <
a
onclick
=
"$find('{0}').close(false);"
class
=
"rwPopupButton"
href
=
"javascript:void(0);"
><
span
class
=
"rwOuterSpan"
><
span
class
=
"rwInnerSpan"
>Não</
span
></
span
></
a
>
</
div
>
</
div
>
</
ConfirmTemplate
>
</
telerik:RadWindowManager
>
And my callback function It's:
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock2"
runat
=
"server"
>
<
script
language
=
"javascript"
type
=
"text/javascript"
>
function alertCallBackFn(arg) {
CloseRadWindow();
}
function GetRadWindow() {
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
function CloseRadWindow() {
var oWindow = GetRadWindow();
oWindow.argument = null;
oWindow.close();
return false;
}
</
script
>
</
telerik:RadCodeBlock
>
All this code is on a page that is opened through RadWindow, and the error happens before the RadAlert it is shown.