Modal popup example

6 posts, 1 answers
  1. Joel
    Joel avatar
    166 posts
    Member since:
    Oct 2006

    Posted 08 Apr 2010 Link to this post

    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.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Apr 2010 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joel
    Joel avatar
    166 posts
    Member since:
    Oct 2006

    Posted 12 Apr 2010 Link to this post

    Thank you, that works perfectly.
  5. Alaa Majzoub
    Alaa Majzoub avatar
    49 posts
    Member since:
    Nov 2007

    Posted 12 Jun 2010 Link to this post

    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

  6. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Jun 2010 Link to this post

    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.
  7. Velkumar
    Velkumar avatar
    16 posts
    Member since:
    Jul 2012

    Posted 19 Sep 2013 Link to this post

    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


Back to Top
UI for ASP.NET Ajax is Ready for VS 2017