ClientCallBackFunction not firing

2 posts, 1 answers
  1. solutionfactory
    solutionfactory avatar
    45 posts
    Member since:
    Apr 2007

    Posted 05 Jun 2008 Link to this post

    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.ClientCallBackFunction = callBackFunction;                     
                        return false

                function MyCallBackFunction(radWindow, returnValue) 
                    $get('<%= hidId.ClientID %>').value = returnValue.Id; 
                    var regione = $find('<%= txtRegione.ClientID %>'); 

    PopUp form ok_clicked
    function OK_Clicked() 
       var oWindow = GetRadWindow(); 
       var arg = new Object(); 
        arg.Id = '1'
        arg.DescRegione = 'aaaaaaa';                 

    <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,
  2. Answer
    Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 06 Jun 2008 Link to this post

    Hello fcometto,

    You need to use the set_clientCallBackFunction() method.

    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top