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

Ajax Problem

1 Answer 75 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Hugues Ferland
Top achievements
Rank 1
Hugues Ferland asked on 16 Sep 2010, 02:28 PM

Hi,
I'm currently having issue with the ajaxmanager in my application. I'm trying the ajaxified different controls, but i keep receiving error on client side.

Here is some example of what i tried:
1. Ajax works but ajaxManager does not fires client events.

 

protected void Page_Load(object sender, EventArgs e){
            RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this);
            ScriptManager scriptManager = ScriptManager.GetCurrent(this);
            ajaxManager.AjaxSettings.AddAjaxSetting(BandQualificationsFormDetails, PanelCadetSelectionList);
            ajaxManager.Alert(string.Format("Page_Load: \najaxMAnager.IsAjaxRequest = {0} \nscriptManager.IsInAsyncPostBack = {1}", ajaxManager.IsAjaxRequest, scriptManager.IsInAsyncPostBack));
        }

When I select a value in a combobox in the web user control BandQualificationsFormDetails (errorajax1).

2. Ajax works but ajaxManager does not fires client events.


protected void Page_Load(object sender, EventArgs e){
  
            RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this);
            ScriptManager scriptManager = ScriptManager.GetCurrent(this);
            ajaxManager.AjaxSettings.AddAjaxSetting(BandQualificationsFormDetails, PanelCadetSelectionList);
            ajaxManager.AjaxSettings.AddAjaxSetting(BandQualificationsFormDetails, BandQualificationsFormDetails);
            ajaxManager.Alert(string.Format("Page_Load: \najaxMAnager.IsAjaxRequest = {0} \nscriptManager.IsInAsyncPostBack = {1}", ajaxManager.IsAjaxRequest, scriptManager.IsInAsyncPostBack));

When I select a value in a combobox in the web user control BandQualificationsFormDetails. (errorajax2)

3. Ajax works and ajaxManager fires client events. (asp panel containing the web user control)

 

 

 

protected void Page_Load(object sender, EventArgs e){
            RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this);
            ScriptManager scriptManager = ScriptManager.GetCurrent(this);
            //ajaxify asp panel that contains BandQualificationsFormDetails
            ajaxManager.AjaxSettings.AddAjaxSetting(PanelBatchBandQualificationFormDetails, PanelCadetSelectionList);No
            ajaxManager.AjaxSettings.AddAjaxSetting(PanelBatchBandQualificationFormDetails, BandQualificationsFormDetails);
            ajaxManager.Alert(string.Format("Page_Load: \najaxMAnager.IsAjaxRequest = {0} \nscriptManager.IsInAsyncPostBack = {1}", ajaxManager.IsAjaxRequest, scriptManager.IsInAsyncPostBack));
}

When I select a value in a combobox in the web user control BandQualificationsFormDetails.(errorajax3)

 


4. Ajax works and ajaxManager fires client events.
(asp panel containing the web user control)

 

protected void Page_Load(object sender, EventArgs e){
            RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this);
            ScriptManager scriptManager = ScriptManager.GetCurrent(this);
            //ajaxify asp panel that contains BandQualificationsFormDetails
            ajaxManager.AjaxSettings.AddAjaxSetting(PanelBatchBandQualificationFormDetails, PanelCadetSelectionList);No
            ajaxManager.AjaxSettings.AddAjaxSetting(PanelCadetSelectionList, PanelBatchBandQualificationFormDetails);
            ajaxManager.Alert(string.Format("Page_Load: \najaxMAnager.IsAjaxRequest = {0} \nscriptManager.IsInAsyncPostBack = {1}", ajaxManager.IsAjaxRequest, scriptManager.IsInAsyncPostBack));
}

When I select a value in a combobox in the web user control BandQualificationsFormDetails(errorajax4).

 

Thx for your time and have a nice day!

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 21 Sep 2010, 12:52 PM
Hello Pascal,

From the provided code and screenshots I'm not able to completely able to understand what your conserns are. Are you saying that the ajaxManager.IsAjaxRequest returns different value if different Ajax Settings are applied? Also which are the ClientEvents that does not fires? As the provided information is not enough to isolate the root cause of the issue you are facing, please prepare a simple, fully runnable reproduction demo, open a new support ticket and send it to us along with very detailed reproduction steps and explanations and we will debug it locally and we will do our best to help.


Best wishes,
Maria Ilieva
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
Hugues Ferland
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or