<
Windows
>
<
telerik:RadWindow
ID
=
"rw_confirm_client"
Modal
=
"true"
Behaviors
=
"None"
VisibleStatusbar
=
"false"
runat
=
"server"
CssClass
=
"RwConfirmacion"
VisibleTitlebar
=
"false"
Height
=
"10"
Width
=
"10"
>
<
ContentTemplate
>
<
div
class
=
"BoxConfirmationContent"
>
<
img
src
=
"../App_Themes/Opa.Tema/Imagenes/Pregunta.png"
id
=
"Img3"
class
=
"ImgNotifcacion"
runat
=
"server"
/>
<
table
class
=
"TbMensajeConfirmacion"
>
<
tr
>
<
td
class
=
"botoncerrarmensajero"
>
<
asp:LinkButton
href
=
"#"
runat
=
"server"
ID
=
"LinkButton2"
CssClass
=
"linkcerrar"
OnClientClick
=
'closeCustomConfirmClient();'
>X</
asp:LinkButton
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"textomensaje"
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
>Aca va el texto del mensaje</
asp:Label
></
td
>
</
tr
>
<
tr
>
<
td
class
=
"botoncerrarmensajero"
>
<
telerik:RadButton
runat
=
"server"
ID
=
"RadButtonConfirmClient"
CssClass
=
"BtConfirmacion"
CausesValidation
=
"false"
Text
=
"OK"
>
<
Image
ImageUrl
=
"../App_Themes/Opa.Tema/Imagenes/NegroTotal.png"
IsBackgroundImage
=
"true"
/>
</
telerik:RadButton
>
<
telerik:RadButton
runat
=
"server"
ID
=
"RadButtonCancelClient"
CssClass
=
"BtConfirmacion"
CausesValidation
=
"false"
Text
=
"Cancelar"
OnClientClick
=
"closeCustomConfirmClient();"
>
<
Image
ImageUrl
=
"../App_Themes/Opa.Tema/Imagenes/NegroTotal.png"
IsBackgroundImage
=
"true"
/>
</
telerik:RadButton
>
</
td
>
</
tr
>
</
table
>
</
div
>
</
ContentTemplate
>
</
telerik:RadWindow
>
</
Windows
>
hello I have this window in a window manager, this window is displayed from a radbutton in another location, using javascript and after asking achievement button trigger the event, the problem is that the databind have stopped working, can anyone help ?
var
fireConfirm =
true
;
function
OnClientClicked(button, args) {
var
callBackFunction = Function.createDelegate(button,
function
(argument) {
if
(fireConfirm && argument) {
this
.set_autoPostBack(
true
);
fireConfirm =
false
;
this
.click();
}
});
if
(fireConfirm) {
button.set_autoPostBack(
false
);
var
text =
"¿Has revisado ya?, si es asi ¿Estas seguro de llevar a cabo esta acción?"
;
var
oWnd = radopen(
null
,
'rw_confirm_client'
);
var
X = document.body.clientWidth - 400;
var
Y = 150;
oWnd.MoveTo(X, Y);
var
button = document.getElementById(
"<%=RadButtonConfirmClient.ClientID %>"
).onclick = callBackFunction;
var
text = document.getElementById(
"<%=Label1.ClientID %>"
).innerText = text;
}
}