Radwindow Manager

8 posts, 0 answers
  1. Raymond
    Raymond avatar
    53 posts
    Member since:
    Aug 2007

    Posted 16 Apr 2008 Link to this post

    I have a aspx page which contains radwindow manager so that a popup can be initiated from this page.

    Inside this aspx page, there is a user control (A) which contains another user control (B). In the user control (B), there is also a radwindow manager to allow a popup initiated from this user control.

    However, the popup works in B but not from the aspx page.

    What can I do to achieve my purpose?
  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 17 Apr 2008 Link to this post

    I'm assuming you're talking about the second window opening within the size limitations of the first window?  Are both windows modal?  I'll need more details to provide more specific assistance.

    However, to open the second window from the parent page all you need to do is get a reference to the first RadWindow object, and then use its BrowserWindow() property to call the WindowManager on the parent page.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 17 Apr 2008 Link to this post

    Hi Raymond,

    Can you please provide more details about your setup? I would like to ask you to open a new support ticket and send us a small sample project where we can observe the problem. Once we have a better view over your case, we will do our best to help.



    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Raymond
    Raymond avatar
    53 posts
    Member since:
    Aug 2007

    Posted 17 Apr 2008 Link to this post

    To make it clear

    aspx Page contains RadwindowManager (RM) and User Control A

    User Control A contains User Control B

    User Control B contains Radwindow Manager (B)

    Javascript is associated with a button and on clicking this button in User Control B, popup window is shown.

    However, javascript associated within a button defined in the aspx page, no popup window is shown.

    Hopefully this would give you more idea on what happen.  This is not the sizing issue.
  6. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 17 Apr 2008 Link to this post

    Hello Raymond,

    Please forgive my ignorance, but without knowing the scope of your project and the specific requirements, it's hard for me to envision why you would need to have another RadWindowManager located in UserControl B.  It sounds like you have nested usercontrols on an aspx page, and if that's the case then any of the nested usercontrols would be able to access and use a RadWindowManager on the aspx page.

    So, is there a specific reason for the RadWindowManager in UserCntrol B ?
  7. Raymond
    Raymond avatar
    53 posts
    Member since:
    Aug 2007

    Posted 17 Apr 2008 Link to this post

    User Control A can be used on any number of aspx pages and User Control B could be embedded in User Control A. But for clarity purpose, the coding is localised on one user control (in this case B).

    Some of the aspx pages may not have radwindow manager defined. Therefore, I have to code the radwindow manager in User Control B.

    In response to your hint,

    does it mean I can dynamically created radwindow manager in user control B when there is none found in the aspx page?

    How does user control B to find out whether there is a defined radwindow manager in the aspx page?
  8. Raymond
    Raymond avatar
    53 posts
    Member since:
    Aug 2007

    Posted 17 Apr 2008 Link to this post

    User Control A can be used on any number of aspx pages and User Control B could be embedded in User Control A. But for clarity purpose, the coding is localised on one user control (in this case B).

    Some of the aspx pages may not have radwindow manager defined. Therefore, I have to code the radwindow manager in User Control B.

    In response to your hint,

    does it mean I can dynamically created radwindow manager in user control B when there is none found in the aspx page?

    How does user control B to find out whether there is a defined radwindow manager in the aspx page?
  9. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 22 Apr 2008 Link to this post

    Hi Raymond,

    Here is some sample code you can use to find a window manager on the page and if there isn't one, create it dynamically in the user control:

    Telerik.Web.UI.RadWindowManager rwm;     
    rwm = Page.FindControl("PageRadWindowManager");     
    if (rwm == null)     
    {     
        rwm = new Telerik.Web.UI.RadWindowManager();     
        rwm.ID = "UserControlWindowManager";     
        this.Controls.Add(rwm);     
    }     
    //...     
    rwm.Windows.Add(window1);    
     


    Kind regards,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017