Ajax Problem

2 posts, 0 answers
  1. Hugues Ferland
    Hugues Ferland avatar
    14 posts
    Member since:
    Oct 2009

    Posted 16 Sep 2010 Link to this post

    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!

     

     

     

     

     

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 21 Sep 2010 Link to this post

    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
Back to Top