RadWindow Close button problem

2 posts, 1 answers
  1. Somnath
    Somnath avatar
    43 posts
    Member since:
    Jun 2012

    Posted 25 Aug 2011 Link to this post

    Hi ,

    I am calling rad window form code ebehind using following code.

    <telerik:RadWindowManager ID="RadWindowManager2" runat="server" VisibleOnPageLoad="false"
            KeepInScreenBounds="true" Modal="true" VisibleStatusbar="false" ShowContentDuringLoad="false">
     <asp:Button ID="btnReport" runat="server" Text="Show Report" OnClick="btnReport_OnClick" />
     protected void btnReport_OnClick(object sender, EventArgs e)
                Telerik.Web.UI.RadWindow rw = new Telerik.Web.UI.RadWindow();
                rw.ID = "test";
                rw.Width = 1135;
                rw.Height = 671;           
                rw.ShowContentDuringLoad = false;
                rw.VisibleStatusbar = false;
                rw.KeepInScreenBounds = true;
                rw.VisibleOnPageLoad = true;
                rw.Modal = true;
                rw.AutoSize = false;
                rw.Behaviors = WindowBehaviors.Close;
                rw.NavigateUrl = "~/Report.aspx?id=1042";
                rw.ReloadOnShow = false;

    When I Click Show Report button it opens report and when I click close button it closes report perfectly
    but when I open same report second time and try to close the report I need to click the close 2-3 times .
    Please suggest for the same.
  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Aug 2011 Link to this post

    Hello Ankit,

    Try setting EnableViewState as False for RadWindowManager.
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState="false">

Back to Top