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

window manager with masterpage or menu

3 Answers 199 Views
Window
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 08 Mar 2008, 11:35 PM
I have this situation and want to find out what is the best solution:

I need some menu links to open the radwindow directly. I have put the rad-menu in a user control and the user control is included in my master page. Where should I put the WindowManager - in Master Page or in Menu user control?

Some of my pages that are opened directly in the browser may contain their own child radwindows too. So, will there be conflict if they also have radwindow manager too along with having window manager in master page / menu user control?

Let me know what is the best approach!

Thanks,
Piyush Bhatt






3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Mar 2008, 01:16 PM
Hi Piyush,

Up to your questions:
  1. I would recommend to put the RadWindowManager in the master page. This way it will be available in all pages where you would need to open RadWindows.
  2. This will not be a problem because with RadWindow "Prometheus" you can have more than one RadWindowManager on the page. Note however that when you use the RadWindowManager's functions (radopen(), radprompt(), radconfirm() and radalert()), these functions will use the RadWindowManager which is first rendered on the page.


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
KevinMc
Top achievements
Rank 1
answered on 25 Jul 2008, 05:51 PM
Georgi:

How do we deal with scenarios where we have master pages where we need radwindows with javascript functions such as radopen and content pages that have windows that need to use the javascript functions. If the radopen always uses the 1st rendered radwindow on the page  how do we get to the 2nd one from javascript when needed?
0
KevinMc
Top achievements
Rank 1
answered on 25 Jul 2008, 05:57 PM
Nevermind i found another post that answered my question. In case anyone else gets here, here is the post that descripes using window.show instead of  radopen. 

http://www.telerik.com/community/forums/thread/b311D-bcttgh.aspx
Tags
Window
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
KevinMc
Top achievements
Rank 1
Share this question
or