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

Refresh Radgrid inside Radwindows when Radwindows closed and reopen again

1 Answer 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ragil
Top achievements
Rank 1
Ragil asked on 13 Sep 2019, 04:26 AM

Dear All,

 

i am new to telerik, especially radgrid. right now i am creating windows popup Employee selector using RadWindows, triggered by button show employee, and then calling another page with radgrid showing Employee record include filter on and paging, it's worked perfectly. But, there some error that i faced, everytime i'm doing filtering or paging on radgrid, after i clicked button close on popup radwindows and then i've clicked button show employee again, popup open but with previously action state that i've done on grid, either filtering or paging.

How can i refresh Radgrid into original state, like first time opening popup and showing radgrid data without filtering or paging state ? 

Thanks.

<%@ Register TagPrefix="UC" TagName="UCEmploye" Src="../SIM/UcEmployeeBrowser.ascx" %>
 
<asp:Button ID="btnSearch" runat="server" Text="..." OnClick="btnSearch_Click" CausesValidation="false" CssClass="btn btn-primary" Height="28px" ToolTip="Click here to browse employee" />
 
<telerik:RadWindow ID="RwEmployeeBrowser" runat="server" Width="1200px" Height="550px" KeepInScreenBounds="true" Title="Select Employee">
    <ContentTemplate>
        <UC:UCEmploye ID="UCEmploye" runat="server" />
    </ContentTemplate>
</telerik:RadWindow>

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 17 Sep 2019, 06:35 AM

Hi Ragil,

Try setting the DestroyOnClose property to True, so when the Window is closed, its object is destroyed and opening it again will open a new one.

Here is a Blog post discussing the Common RadWindow issues and their solution

Kind regards,
Attila Antal
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Ragil
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or