refresh ajaxmanager

3 posts, 0 answers
  1. Kaushal
    Kaushal avatar
    8 posts
    Member since:
    Mar 2012

    Posted 12 Jul 2012 Link to this post


    On my page (aspx). I have this code

    RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);
     ajaxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(this.RadAjaxManager1_AjaxRequest);

    I load a user control dynamically

    var ucToolMfgInfo = (UserControls_ToolsDetailsMfgInfoUC)Page.LoadControl("~/Tools/UserControls/ToolsDetailsMfgInfoUC.ascx");

    This user control has button which opens a radwindow. The javascript on this user control is on radscriptblock. When the radwindow open, On the radwindow, when I click submit button, it saves data and then  it calls function from aspx page to refresh the browserwindow. It is browserwindow.refeshGridComponent. I can get the alert test111 but the ajaxmanager does not refresh and it does not call RadAjaxmanager_ajaxrequest function to update the grid on the user control.
    function refreshGridComponent(arg, arg1) {
                    var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(this.Page).ClientID %>");

    In the Radajaxmanager_ajaxrequest function on aspx page

    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
              if (e.Argument == "Component")

    Any help is appreciated.


  2. Kaushal
    Kaushal avatar
    8 posts
    Member since:
    Mar 2012

    Posted 16 Jul 2012 Link to this post

    Nobody is here to help ???? Where is the support team?
  3. Andrey
    Andrey avatar
    836 posts

    Posted 17 Jul 2012 Link to this post


    Most probably this behavior is caused by the fact that GetCurrent method could not find the instance of the RadAjaxManager control.

    You could verify this assumption by placing a debugger after the alert function and examine the value of the ajaxManager variable.

    Additionally, please note that the response time is not guaranteed for forums. When posting a thread in forums you are relying mostly on the community.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top