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

[Solved] RadAjaxManagerProxy and UpdatedControls

1 Answer 112 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Erkan Şahan
Top achievements
Rank 1
Erkan Şahan asked on 24 Nov 2009, 12:08 PM
Hi,

I have a master page which has RadAjaxManager in it , and web user control that has a simple form & simple controls on it with a submit linkbutton. On my user control I have a Radcombobox which is ajaxified by RadAjaxManagerProxy and I set the UpdatedControls prior to it. These are some labels, some textboxes and 1 submit linkbutton.

As I expected the Radcombobox does ajax post back and updates the controls needed. But when I click to the linkbutton which submits the form of web user control, it does nothing. Then I figured out that it does what it is expected, but doing postback in ajax . I mean the page is not normal postbacking. The button also ajaxifed. But I set the button only UpdatedControls setting of Radajaxmanagerproxy.  When I remove the button from updated controls it postbacks normally which I wanted to be. I am ajaxifiying it because according to the combobox 's value  i am enabling or disabling the linkbutton. So I need to add linkbutton to updatedcontrols collection. But I donot want its postback feature being ajaxified.

Here is my Radajaxmanagerproxy definitions

<

 

telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="ddl">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="lbl1" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="lbl2" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="lbl3" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="lbl4" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="lbl5" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="txt" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="rbl" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="btn" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="uc1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="uc1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

</

 

telerik:RadAjaxManagerProxy>

 

1 Answer, 1 is accepted

Sort by
0
Johny
Top achievements
Rank 1
answered on 26 Nov 2009, 11:18 AM
Hi Erkan,

I guess you should exclude your button from ajaxifying. Check this link for more details:

http://www.telerik.com/help/aspnet-ajax/ajxexclude.html

I hope this helps,
Johny



Tags
Ajax
Asked by
Erkan Şahan
Top achievements
Rank 1
Answers by
Johny
Top achievements
Rank 1
Share this question
or