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

RadAlert DoSomthing With Ok Button

2 Answers 316 Views
Window
This is a migrated thread and some comments may be shown as answers.
Majid Darab
Top achievements
Rank 1
Majid Darab asked on 27 Sep 2010, 09:53 AM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Sep 2010, 11:31 AM
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.
0
Majid Darab
Top achievements
Rank 1
answered on 27 Sep 2010, 12:06 PM
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


Tags
Window
Asked by
Majid Darab
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Majid Darab
Top achievements
Rank 1
Share this question
or