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

Multiple RadWindows and Skins

1 Answer 112 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alu Bonamis
Top achievements
Rank 1
Alu Bonamis asked on 06 Feb 2009, 03:45 PM
//this is how it is invoked in my javascript function  
var radWindowManager= GetRadWindowManager();  
        var radWindow=radWindowManager.GetWindowByName("RadWindow1");  
        radWindow.SetUrl(url);  
        radWindow.Show();  
 
Hi,
I have a scenario whereby i have multiple radwindowmanager instances on a single page. This is for the sole purpose that  both of the windows that are launched should use seperate skins.

 

<rad:RadWindowManager ID="BudgetsWindowManager" runat="server" Skin="Halcrow" SkinsPath="/RadControls/Window/Skins/" Behavior="Reload,Close,ReSize">  
 
<Windows>   
 
<rad:RadWindow ID="RadWindowPackageUpdate" Modal="true"   
 
ShowContentDuringLoad="true" runat="server" Width="900" Height="570" Skin="Halcrow" SkinsPath="/RadControls/Window/Skins/" Behavior="Reload,Close,ReSize"/>   
 
<rad:RadWindow ID="RadWindow1" runat="server" Skin="HalcrowHelp" VisibleTitlebar="false" VisibleStatusbar="false" Behavior="None" Modal="true" SkinsPath="/RadControls/Window/Skins/" /> 
 
</Windows> 
 
</rad:RadWindowManager> 
 
 
<rad:RadWindowManager ID="RadWindowManager1" runat="server" Skin="HalcrowHelp" VisibleTitlebar="false" VisibleStatusbar="false" Behavior="None" Modal="true" SkinsPath="/RadControls/Window/Skins/">  
 
 
</rad:RadWindowManager> 
 

However when i try to launch a window usin RadWIndowManager1 , it appears that due to multiple instances of RadWIndowManager on the page, it appears to use the skin settins provided for "Halcrow" mentioned in "BudgetsWindowManager" rather than the "HalcrowHelp" provided in the RadWindowManager1. I have tried mergin the Window Managers togather, however setting the skin on the rad window appears to have no effect and the WindowManager Skin always seems to take preference. Is there anyway i can use multiple instances of RadWindowManager to selct he appropriae SKin? I have tried various things to get around this issue including the one below

 <rad:RadWindowManager ID="BudgetsWindowManager" runat="server" Skin="HalcrowHelp" SkinsPath="/RadControls/Window/Skins/" Behavior="Reload,Close,ReSize">  
                                                <Windows>                                                       
                                                    <rad:RadWindow ID="RadWindowPackageUpdate" Modal="true"   
                                                    ShowContentDuringLoad="true" runat="server" Width="900" Height="570" Skin="Halcrow" SkinsPath="/RadControls/Window/Skins/" Behavior="Reload,Close,ReSize"/>                                                      
                                                    <rad:RadWindow ID="RadWindow1" runat="server"  Skin="HalcrowHelp" VisibleTitlebar="false" VisibleStatusbar="false" Behavior="None" Modal="true" SkinsPath="/RadControls/Window/Skins/" /> 
                                                </Windows> 
                                            </rad:RadWindowManager> 
 
 

 
but to no avail. Can ayone help please?

 


Thanks

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 09 Feb 2009, 12:28 PM
Hello Alu,

GetRadWindowManager, radopen, radconfirm etc. functions of RadWindowManager will automatically use the first RadWindowManager that is rendered on the page - that is why your code is not working correctly.

What I suggest in scenario like yours is not to use RadWindowManager - use standalone RadWindows instead and open them by using show().
e.g.
var oWnd = $find("<%= RadWindow1.ClientID %>")
oWnd.show();




Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Alu Bonamis
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or