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

Modal popup example

5 Answers 588 Views
Window
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 2
Joel asked on 08 Apr 2010, 08:23 PM
I am looking for an example to do what is available with the ajaxtoolkit in telerik for modalpopup.  http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ModalPopup/ModalPopup.aspx 

I want to do a modal popup of a panel that disables the elements on the page it is launched from.  It looks like from the graphic on the rad window page  http://www.telerik.com/libraries/radcontrols_for_asp_net_ajax/window_screenshot.sflb that it is possible, I just can't find that demo anywhere.

Thanks.

5 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 09 Apr 2010, 09:01 AM

Hello Joel,

You could set the Modal property of the window to True. The Modal property of RadWindow controls whether the window appears as a modal dialog.

-Shinu.

0
Joel
Top achievements
Rank 2
answered on 12 Apr 2010, 02:00 PM
Thank you, that works perfectly.
0
Alaa Majzoub
Top achievements
Rank 2
answered on 12 Jun 2010, 03:54 PM
Currently i am using the radtooltip to display a modal popup (rather than radwindow) for one reason, that i can insert a user control inside the tooltip without the need to build a new page, also i can change this user control dynamically.

the problem with this approach is that, by design, if another tooltip is shown, the dialog disappears.

is there anyway i can extract the modal functionality of the tooltip without it being a tooltip?! meaning; can i use radwindow in the same approach? or is there any other rad control that behaves like mentioned above?

Using Q2 2009

0
Princy
Top achievements
Rank 1
answered on 14 Jun 2010, 08:33 AM
Hi Alaa,

You can use RadWindow instead. The demo shows how to use radwindow as controls container.
Window / Use as controls container


The RadWindow can be used to hold internal content which is can be a user control and when used in this manner it acts as a standard container element and the content is declared between its <ContentTemplate> tags.
    
    <telerik:RadWindow runat="server" ID="Window1" VisibleOnPageLoad="true">     
        <ContentTemplate>     
            <uc1:WebUserControl ID="WebUserControl1" runat="server" />     
        </ContentTemplate>     
    </telerik:RadWindow>    
 


You can dynamically add/change controls to the RadWindow from code-behind by adding them to its ContentContainer as shown below:
 
    UserControl uc2 = (UserControl) LoadControl("~/Window/Content/WebUserControl2.ascx");  
    Window1.ContentContainer.Controls.Clear();  
    Window1.ContentContainer.Controls.Add(uc2); 


Regards,
Princy.
0
Velkumar
Top achievements
Rank 1
answered on 19 Sep 2013, 05:47 PM
Hi,

i am having radwindow, also i have make Modal="true", my problem is i have a dropdown and gridview inside that radwindow, based on dropdown changed event, i need to populate gridview, when i changed values in dropdown controls inside radwindow get disappeared, how can i fix this


Tags
Window
Asked by
Joel
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 1
Joel
Top achievements
Rank 2
Alaa Majzoub
Top achievements
Rank 2
Princy
Top achievements
Rank 1
Velkumar
Top achievements
Rank 1
Share this question
or