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

masterpage ajax

3 Answers 68 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
WILLIAM HAIGHT
Top achievements
Rank 1
WILLIAM HAIGHT asked on 03 May 2010, 11:00 PM
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>  
 
  

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 06 May 2010, 08:19 AM
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.
0
WILLIAM HAIGHT
Top achievements
Rank 1
answered on 10 May 2010, 08:44 PM
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.
0
Pavlina
Telerik team
answered on 12 May 2010, 12:46 PM
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.
Tags
Ajax
Asked by
WILLIAM HAIGHT
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
WILLIAM HAIGHT
Top achievements
Rank 1
Share this question
or