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

re-open when postback

2 Answers 98 Views
Window
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 30 Nov 2009, 11:29 AM
Hello

maybe you respond this answer later but i can't find it

I have a page with a button when i click on it, call a Radwindow. but every time i do a refresh to the page
the Radwindow appears again

Why?

please help

Thanks

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Nov 2009, 12:43 PM
Hello Luis,

I suppose you have set the VisibleOnPageLoad property of RadWindow to True. If so reset the VisibleOnPageLoad property to false and see whether it is working as expected.

ASPX:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    <Windows> 
        <telerik:RadWindow runat="server" OpenerElementID="Button1" VisibleOnPageLoad="false" Behavior="Default" InitialBehavior="None" NavigateUrl="Dialog1.aspx"
        </telerik:RadWindow> 
    </Windows> 
</telerik:RadWindowManager> 
<asp:Button ID="Button1" runat="server" Text="Open Window"/> 

-Shinu.
0
Accepted
Georgi Tunev
Telerik team
answered on 30 Nov 2009, 12:45 PM
Hello Luis,

Since Q3 when a RadWindow is declared in  RadWindowManager it preserves its ViewState which was not so in previous versions. This could lead to backwards incompatibility when the VisibleOnPageLoad property is used in this configuration with the idea to show the RadWindow only once. Possible solutions for this case are the following ones:

    * Set EnableViewState = "false" for the RadWindowManager
    * Reset the VisibleOnPageLoad property to false with code when suitable, depending on the particular scenario
    * Show the RadWindow through registering a script from the server instead.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Luis
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or