masterpage ajax

4 posts, 0 answers
  1. WILLIAM HAIGHT
    WILLIAM HAIGHT avatar
    4 posts
    Member since:
    Apr 2009

    Posted 03 May 2010 Link to this post

    I have a simple master page, content page with a radgrid being populated from button click,  I have ajaxmanager, grid and button on the content page, everything works fine for the first click( when the page loads for the first time) I see the loading panel, isajaxrequest = true, but any subsequent click will return RadAjaxManager1.Alert(RadAjaxManager1.IsAjaxRequest.ToString())   = false which means the ajax request  is not being fired, what am I doing wrong?  I need to it be consistently showing the panelbar after the button_click  Please help


    I have the below code on the content page. At btnsearch_click I have RadGrid1.databind
     
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >  
     
    <AjaxSettings>  
     
    <telerik:AjaxSetting AjaxControlID="btnsearch" >  
     
    <UpdatedControls>  
     
    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>  
     
    </UpdatedControls>  
     
    </telerik:AjaxSetting>  
     
     
    <telerik:AjaxSetting AjaxControlID="RadioButton1">  
     
    <UpdatedControls>  
     
    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />  
     
    <telerik:AjaxUpdatedControl ControlID="RadioButton2" />  
     
    </UpdatedControls>  
     
    </telerik:AjaxSetting >  
     
    <telerik:AjaxSetting AjaxControlID="RadioButton2">  
     
    <UpdatedControls>  
     
    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />  
     
    <telerik:AjaxUpdatedControl ControlID="RadioButton1" />  
     
    </UpdatedControls>  
     
    </telerik:AjaxSetting >  
     
    </AjaxSettings>  
     
    </telerik:RadAjaxManager>  
     
      
  2. Pavlina
    Admin
    Pavlina avatar
    6184 posts

    Posted 06 May 2010 Link to this post

    Hi WILLIAM,

    For more information about how to use RadAjax in master->content page scenario, please refer to the following resources:
    http://www.telerik.com/help/aspnet-ajax/ajxajaxmasterpage.html
    http://www.telerik.com/help/aspnet-ajax/ajxmasterpageupdateeverywhere.html
    http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx

    Give them a try and let me know if I can assist you further.

    Kind regards,
    Pavlina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. WILLIAM HAIGHT
    WILLIAM HAIGHT avatar
    4 posts
    Member since:
    Apr 2009

    Posted 10 May 2010 Link to this post

    Tried following
    Put RadAjaxmanager in the masterpage and Ajaxified and updated controls in content page using Rradajaxmanagerproxy in content page, did n't work, also found that when I take out ajaxmanager from content page the grid paging gives invalid postbackerror. 

    Tried to add addajaxsetting in the pageload  but gave object reference error, Not sure what is happening since examples seem pretty straightforward but when we try to duplicate it gives issues.
  4. Pavlina
    Admin
    Pavlina avatar
    6184 posts

    Posted 12 May 2010 Link to this post

    Hello WILLIAM,

    Could you please elaborate a bit on your scenario and share your grid declaration as well? I will try replicating the issue locally and turn back to you with my findings.

    Sincerely yours,
    Pavlina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top