re-open when postback

3 posts, 1 answers
  1. Luis
    Luis avatar
    23 posts
    Member since:
    Mar 2009

    Posted 30 Nov 2009 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Nov 2009 Link to this post

    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.
  3. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 30 Nov 2009 Link to this post

    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.
Back to Top