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

Radwindow Manager

7 Answers 186 Views
Window
This is a migrated thread and some comments may be shown as answers.
Raymond
Top achievements
Rank 1
Raymond asked on 16 Apr 2008, 09:56 PM
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?

7 Answers, 1 is accepted

Sort by
0
Shaun Peet
Top achievements
Rank 2
answered on 17 Apr 2008, 01:30 PM
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.
0
Georgi Tunev
Telerik team
answered on 17 Apr 2008, 01:51 PM
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
0
Raymond
Top achievements
Rank 1
answered on 17 Apr 2008, 01:51 PM
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.
0
Shaun Peet
Top achievements
Rank 2
answered on 18 Apr 2008, 12:42 AM
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 ?
0
Raymond
Top achievements
Rank 1
answered on 18 Apr 2008, 01:59 AM
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?
0
Raymond
Top achievements
Rank 1
answered on 18 Apr 2008, 01:59 AM
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?
0
Lini
Telerik team
answered on 22 Apr 2008, 07:36 AM
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
Tags
Window
Asked by
Raymond
Top achievements
Rank 1
Answers by
Shaun Peet
Top achievements
Rank 2
Georgi Tunev
Telerik team
Raymond
Top achievements
Rank 1
Lini
Telerik team
Share this question
or