I'm looking at some code I've inherited.
The page uses a number of UserControls some of which have RadWindowManagers on them.
I find myself needing to call some of the dialogs in /one/ UserControl from within another UserControl.
I know that I could move all the window definitions to the page that holds them, but some of the controls are used on multiple pages and that means duplicating the definitions.
What's the best way of proceeding?
Should I, from within UserControlA, just $find the window in UserControlB? Or should I $find the window manager in UserControlB and call its open() method?
If it makes any difference, the managers in UserControlA and UserControlB set a number of default properties for the window definitions contained in them and I want those defaults to be used.
--
Stuart
The page uses a number of UserControls some of which have RadWindowManagers on them.
I find myself needing to call some of the dialogs in /one/ UserControl from within another UserControl.
I know that I could move all the window definitions to the page that holds them, but some of the controls are used on multiple pages and that means duplicating the definitions.
What's the best way of proceeding?
Should I, from within UserControlA, just $find the window in UserControlB? Or should I $find the window manager in UserControlB and call its open() method?
If it makes any difference, the managers in UserControlA and UserControlB set a number of default properties for the window definitions contained in them and I want those defaults to be used.
--
Stuart