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

Does RadWindow have behaviors of ModalPopupExtender

1 Answer 57 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 29 Dec 2010, 11:17 PM
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,

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Dec 2010, 10:41 AM
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.
Tags
Window
Asked by
Tom
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or