Does RadWindow have behaviors of ModalPopupExtender

2 posts, 0 answers
  1. Tom
    Tom avatar
    41 posts
    Member since:
    Feb 2009

    Posted 29 Dec 2010 Link to this post

    Hi,

    I have a requirement that I need to implement a modal popup if a hyperlink is clicked on a page.  When the modal popup is selected, the user is given a message asking if they wish to leave the site and there are two buttons on the site (cancel and ok).  If ok is clicked, a new window is opened and the user is navigated to the target url in the new window.

    If the cancel button is clicked, the popup closes and the user remains on the page.

    There is styling involved as well since when the window opens the page behind it appears to be disabled.  With the ModalPopupExtender, this is done using the BackgroundCssClass which is something like

    .modal-background
    {
        width:100%;
        min-height:100%;
        position:fixed;
        top:0;
        left:0;
        z-index:100000;
        background-color:#333333;
        opacity:0.55;
        -moz-opacity:0.55;
        filter:alpha(opacity=55);
    }

    Does the RadWindow implement the same kind of functionality and if not, are there any RadControls that do?

    Thanks,
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 30 Dec 2010 Link to this post

    Hello Tom,

     Making RadWindow as modal is nearly simple by setting the "Modal" property to "True". 

    aspx:
    <telerik:RadWindow ID="RadWindow 1" runat="server"  Modal="true">

    Thanks,
    Princy.
Back to Top