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

Can't consistently refresh grid when closing window

1 Answer 32 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 08 Nov 2011, 08:28 PM
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")
            {
                radGrdPayerAlias.Rebind();
            }
        }

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 09 Nov 2011, 07:08 AM
Hello,

Please try with this link.

Thanks,
Jayesh Goyani
Tags
Window
Asked by
Bill
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or