Hi,
I'm upgrading my older version of telerik radwindow with the newest one.
I need to show radconfirm by an action on a radgrid, after postback, so I manage a label inside a hidden placeholder (called "labAlert"), and on postback i assign to "labAlert.Text" a script that calls radconfirm, and i set visible the placeholder
this is on ascx.cs:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) |
{ |
if (e.CommandName == "ActionName") |
{ |
String ScriptJs = "<script language=JavaScript>"; |
ScriptJs += "{"; |
ScriptJs += "ShowConfirm('ConfirmText')"; |
ScriptJs += "}"; |
ScriptJs += "</SCRIPT>"; |
labALERT.Text = ScriptJs; |
PlaceHolder1.Visible = true; |
e.Canceled = true; |
} |
and this is on .ascx
<script type="text/javascript"> |
function ShowConfirm(text) |
{ |
radconfirm(text, confirmCallBackFn, 200, 100, '', ' '); |
return false; |
} |
function confirmCallBackFn(Conferma) |
{ |
if (Conferma) |
{ |
[...javascrip actions if OK ...] |
} |
else |
{ |
[...javascrip actions if CANCEL...] |
} |
} |
</script> |
whith old version of radwindow it works fine, but with new version i get a javascript error on browser when radconfirm is called...
Where is the difference???
Thanks in advance