Can't consistently refresh grid when closing window

2 posts, 0 answers
  1. Bill
    Bill avatar
    4 posts
    Member since:
    Mar 2009

    Posted 08 Nov 2011 Link to this post

    I have several pages with grids on them, with a RadWindow used to either edit grid items or add new ones. Everything worked great for a couple years, but I seem to be having an issue now that I'm using a newer version (2011.2.712.35) of the Telerik.Web.UI DLL.

    After the first time you close the window, the grid refreshes properly. After that, opening the window and closing it a second time fails to refresh the grid.

    I'm calling the refresh by setting OnClientClose on the window:

    <telerik:RadWindow ID="EditAlias" runat="server" Title="Edit Client/Payer Alias" VisibleStatusbar="false" ReloadOnShow="true" Modal="true" Behaviors="Close" Animation="Slide" OnClientClose="OnClientClose"  />

    Then the javascript:

    function OnClientClose(sender, eventArgs)
       $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");

    And finally the code-behind:

    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
                if (e.Argument == "Rebind")
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 09 Nov 2011 Link to this post


    Please try with this link.

    Jayesh Goyani
  3. DevCraft R3 2016 release webinar banner
Back to Top