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

RadWindows Dispose

1 Answer 79 Views
Window
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 13 Oct 2011, 08:49 PM
I'm working with the RadWindow, and all is OK - except, on the close of the RadWindow;

If an unrelated button is clicked on the same web page, the RadWindow re-appears as a popup;

I'm writing to ask if the RadWindow can be disposed of - after intended utilization;

The DestroyOnClose, and Dispose, methods did not resolve the issue of the popup window re-appearing after intened use;
//Set its properties
               rw1.Width = Unit.Pixel(400);
               rw1.Height = Unit.Pixel(400);
               //rw1.NavigateUrl = "http://www.google.com";
               rw1.NavigateUrl = "PopupFileUpload.aspx";
               //Make sure that the window will be shown after the postback
               rw1.VisibleOnPageLoad = true;
               //Add it to the RadWindowManager's Windows collection
               RadWindowManager1.Windows.Add(rw1);

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
             <Windows
                 <telerik:RadWindow ID="Window1" runat="server" NavigateUrl="PopupFileUpload.aspx"/> 
             </Windows
         </telerik:RadWindowManager>

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 14 Oct 2011, 10:46 AM
Hello Robert,

Since you are setting VisibleOnPageLoad property to true it will appear on each postBack.
You can find the answer from this forum.

Thanks,
Princy.
Tags
Window
Asked by
Robert
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or