Hi all,
i'm using version 2008.1.515 of RadWindow for Asp.Net Ajax control.
ClientCallBackFunction event not firing with this version, below my code
function ShowInsertForm(targetPage,callBackFunction,Title) |
{ |
var oWindow = radopen (targetPage, "PopUp"); |
oWindow.set_title (Title); |
oWindow.set_modal (true); |
oWindow.setSize(800,400); |
oWindow.center(); |
oWindow.ClientCallBackFunction = callBackFunction; |
return false; |
} |
function MyCallBackFunction(radWindow, returnValue) |
{ |
$get('<%= hidId.ClientID %>').value = returnValue.Id; |
var regione = $find('<%= txtRegione.ClientID %>'); |
regione.set_value(returnValue.DescRegione); |
} |
PopUp form ok_clicked
function OK_Clicked() |
{ |
var oWindow = GetRadWindow(); |
var arg = new Object(); |
arg.Id = '1'; |
arg.DescRegione = 'aaaaaaa'; |
oWindow.close(arg); |
} |
OpenPopUp
<asp:ImageButton ID="btnListaRegione" |
runat="server" SkinID="btnList" OnClientClick="return ShowInsertForm('PopUpRegioni.aspx','MyCallBackFunction','Elenco Regioni');" /> |
Any suggestions?
With RadControl Q3 2007 all works fine.
Thanks in advance,
Flavio