Handle RadWindow when browser "back" button click

2 posts, 0 answers
    HAN MING avatar
    5 posts
    Member since:
    Sep 2016

    Posted 25 Sep 2016 Link to this post

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState="false">
               <telerik:RadWindow runat="server" ID="rdWindowMessage" InitialBehaviors="Resize" Width="700px" Height="400px" Behaviors="None" EnableShadow="true" Modal="true"
                       <asp:Panel ID="pnlEventMessage" runat="server">
                           <br />
                           <div class="container">
                               <div class="row">
                                   <div class="col-md-12 text-center">
                                       <asp:Image runat="server" ID="imgMessageInfo" Visible="true" ImageUrl="/_layouts/images/mewa_infob.gif" />
                                       <asp:Image runat="server" ID="imgMessageCritical" Visible="false" ImageUrl="/_layouts/images/CRIT_32.GIF" />
                               <div class="row">
                                   <div class="col-md-12 text-center">
                                       <asp:Label runat="server" ID="lblMessage" />
                               <div class="row">
                                   <div class="col-md-12 text-center">
                                       <telerik:RadButton ID="rdBtnMessageOk" runat="server" Text="Ok" OnClick="rdBtnMessageOk_Click"/>


    I have implement a RadWindow to display the outcome of a process and there is a "ok" button in RadWindow to close it. 

    When i click on the browser back button, the previous RadWindow  message will show out.

    I like to know is there anyway to stop the RadWindow showing when users click on the browser 'back' button? 

    How should i handle it?



  2. Marin Bratanov
    Marin Bratanov avatar
    5619 posts

    Posted 26 Sep 2016 Link to this post


    This is, most likely, caused by the fact that the code that opens the RadWindow is called again when the page reloads. You would have to either raise some flags (e.g., cookies, session flags, whatever), or find another way to ensure the code does not get executed again. RadWindow itself does not monitor the browser, or the session, and with HTTP being stateless, such behavior is expected.


    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top