I am experiencing problems replacing a simple asp button with a RadButton.
I need to simply fire a Javascript but it is not working.
This is the original asp button I need to replace:
This is the RadButton I am coding to replace the above asp button.
I cannot fire the "openRadWin(); return false,"
this is the function:
What am I doing wrong here?
I need to simply fire a Javascript but it is not working.
This is the original asp button I need to replace:
<
button
style
=
"width: 150px; margin-bottom: 0px;"
onclick
=
"openRadWin(); return false;"
>Exchange rate calculator</
button
>
This is the RadButton I am coding to replace the above asp button.
<
telerik:RadButton
ID
=
"Button11"
runat
=
"server"
Text
=
""
CssClass
=
"cNexchange"
HoveredCssClass
=
"cHexchange"
PressedCssClass
=
"cCexchange"
OnClientClicked
=
"openRadWin(); return false;"
>
<
Image
EnableImageButton
=
"true"
/>
</
telerik:RadButton
>
this is the function:
<
script
type
=
"text/javascript"
>
//
<![CDATA[
function openRadWin() {
var width = "430px";
var height = "355px";
var left = "800px";
var top = "150px";
radopen("currencies.aspx", "RadWindow1", width, height, left, top);
}
//]]>
</
script
>
What am I doing wrong here?