This is a migrated thread and some comments may be shown as answers.

ClientCallBackFunction not firing

1 Answer 125 Views
Window
This is a migrated thread and some comments may be shown as answers.
solutionfactory
Top achievements
Rank 1
solutionfactory asked on 05 Jun 2008, 02:46 PM

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 06 Jun 2008, 01:14 PM
Hello fcometto,

You need to use the set_clientCallBackFunction() method.
e.g.
oWindow.set_clientCallBackFunction(MyFunction);



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
solutionfactory
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or