RadAlert DoSomthing With Ok Button

3 posts, 0 answers
  1. Majid Darab
    Majid Darab avatar
    112 posts
    Member since:
    Dec 2009

    Posted 27 Sep 2010 Link to this post

    hi my dear friends :
    how can i do somthing (refresh the page under the alert) with ok button of radalert?


    thanks in future advace
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Sep 2010 Link to this post

    Hello Majid,


    Add the close event for radalert which will be invoked when clicking OK (closing alert) button in alert. More information available in the following forum link.
    Using radalert



    -Shinu.
  3. Majid Darab
    Majid Darab avatar
    112 posts
    Member since:
    Dec 2009

    Posted 27 Sep 2010 Link to this post

    hi dear shinu :
    thanks for your answer and i know your way / but let me explain why i want refresh the parent page with ok bottun not another way

    I Have A DocMenu That is working with jquery...

    one of it's item is like this :

    <a class="dock-item" href="#">
        <img src="JQueryDocMenu/Images/1.png" alt="Test" /><span>Test</span></a>

    i am using Telerik RadWindiwManager For pop up Windows...

    when i am using a button or something like that , so every thing is ok for pop up the window...

    but when i am using href of that menu it seems there is a problem.(window works (appears) at the first time click only , but after that a white screen comes up)

    the href in that item is like this :

    <a class="dock-item" href="javascript:OpenWindow();" title="Test">
        <img src="JQueryDocMenu/Images/1.png" alt="Test" /><span></span></a>
    the RadWindowManager and It's Window is Like This :
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" ReloadOnShow="True"
            ShowContentDuringLoad="False" VisibleStatusbar="False" Behavior="Default" InitialBehavior="None"
            EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False" Skin="SunsetByMe"
            Font-Names="Tahoma" Style="z-index: 8000;" DestroyOnClose="True">
        <Windows>
            <telerik:RadWindow ID="window1" runat="server"
                Behavior="Close" NavigateUrl="~/a/window1.aspx"
                OnClientClose="OnClientClose"
                DestroyOnClose="True" Modal="True">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    and javascript code is like this :
    <script type="text/javascript">
     
      function OpenWindow() {
          Sys.Application.add_load(ow);
      }
     
      function ow() {
          var oWnd = radopen(null, 'window1');
          Sys.Application.remove_load(ow);
      }
     
      function OnClientClose(oWnd, args) {
     
      }
    </script>
    the onclick event of a button that popup RadWindow (it 's ok) is like this :
    protected void Button1_Click1(object sender, EventArgs e)
    {
        Page.RegisterStartupScript("callWin", "<script type='text/javascript'>OpenWindow();</script>");
    }

    how can i fix the problem ?

    thanks in future advance


Back to Top