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

Multiple RadWindowManagers in a page

1 Answer 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
Praveen
Top achievements
Rank 1
Praveen asked on 13 May 2013, 01:28 AM
We have a situation requiring multiple managers because we have user controls with multiple windows. There is a window manager in the user control to group these windows. When these user controls are added to the same page, the page ends up with multiple window managers, one from each user control.

Are there any best practices around creating multiple RAD Window Mangers on a page? Does having multiple managers impose any penalties in performance / scale?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 May 2013, 10:12 AM
Hello Praveen,

The following help article treats using many RadWindowManagers on the same page and offers a solution - making sure you are using the correct manager instance to open you popups: http://www.telerik.com/help/aspnet-ajax/radwindow-troubleshooting-wrong-window-opened.html.

Since you can have many instances of the same user control your JavaScript functions should not override each other, so they must have unique names and this is explained here: http://www.telerik.com/support/kb/aspnet-ajax/general/using-dynamic-unique-names-for-javascript-functions.aspx. This should also apply to client-side event handlers.

You can also avoid using RadWindowManagers in your user controls, since RadWindows can be declared and used directly on the page without a manager, you would simply need to use $find().show() with them instead of radopen() or manager.open().


Regards,
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.
Tags
Window
Asked by
Praveen
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or