RadAlert from RadWindow modal

2 posts, 0 answers
  1. Zÿm
    Zÿm avatar
    26 posts
    Member since:
    Jun 2010

    Posted 21 Dec 2011 Link to this post

    I would like to see RadAlert on top of radwindow modal window and not inside. Is this possible?
    Z-index and css overriding was already tried.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Dec 2011 Link to this post

    Hello,

    Here is the sample code that I tried which worked as expected.

    ASPX:
    <asp:Button ID="Button1" runat="server" Text="Click" OnClientClick="open1();return false"/>
       <telerik:RadWindowManager ID="RadWindowManager1" runat="server" >
          <Windows>
            <telerik:RadWindow runat="server" ID="RadWindow 1" Modal="true">
               <ContentTemplate>
                  <asp:Button ID="Button1" runat="server" Text="Alert" OnClientClick="OnClientClick();return false;" />
               </ContentTemplate>
            </telerik:RadWindow>
         </Windows>
    </telerik:RadWindowManager>

    JS:
    <script type="text/javascript" language="javascript">
      function open1()
       {
         window.radopen(null, "RadWindow1");
       }
     function OnClientClick()
      {
         radalert("message");
      }
    </script>

    Thanks,
    Princy.
Back to Top