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

RadWindowManager in UserControl?

2 Answers 134 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stefano
Top achievements
Rank 1
Stefano asked on 13 Aug 2012, 02:25 PM
Ok, here is my noob question :-)

I have a footer usercontrol (ascx). This footer control launch server side a radwindow (that is another aspx page).

Here is my code:

RadWindow newWindow = new Telerik.Web.UI.RadWindow();
newWindow.ID = "HelpDeskMessageWindow";
newWindow.NavigateUrl = "ErrorPopup.aspx";
newWindow.AutoSize = true;
newWindow.Modal = true;
RadWindowManager1.Windows.Add(newWindow);
newWindow.VisibleOnPageLoad = true;

As you can see in order to do that I have to put the radwindowmanager inside the usercontrol.

I'm worried about this, because I think that the radwindowmanager should stay in the parent aspx page who contains the control.

What is the best way to do that? i'm doing something wrong?
Thanks a lot

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 14 Aug 2012, 01:59 PM
Hi Stefano,

A RadWindow can live on the page separately, without a manager, so you can simply add the desired RadWindow to your user control's control tree instead of to a manager. Otherwise, you can traverse the page hierarchy and add it to the manager you already have there.

I also believe the following resources will help you get started with using the RadWindow:
its Client-side API
how to open it from the server
different ways to open a RadWindow
working with multiple managers


All the best,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Stefano
Top achievements
Rank 1
answered on 15 Aug 2012, 05:26 PM
Thanks a lot for your suggestion, I'm working using your advices
Tags
Window
Asked by
Stefano
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Stefano
Top achievements
Rank 1
Share this question
or