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

Change skin on client side open

2 Answers 178 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dave Miller
Top achievements
Rank 2
Dave Miller asked on 19 Feb 2009, 09:33 PM
Is it possible to change the window skin on opening a window using javascript such as below?

function OpenRw(varPage, var1, var2) {                        
var oManager = GetRadWindowManager();  
var oWnd = oManager.GetWindowByName("pgRadWindow");   
if (!oWnd) return;  
if (varPage == "1"){  
var newUrl = "Slideshows.aspx?id="+var1 ;  
oWnd.SetSize(565,545);  
oWnd.Skin = "Gray";  
}  
oWnd.SetUrl(newUrl);  
oWnd.Show();  

Thanks,
Dave

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Feb 2009, 07:31 AM
Hi Dave,

I have found in one of the forum discussion that Skin can be set from the server only as it is set in the initial creation of the window object. Here is the forum link.

Shinu
0
Georgi Tunev
Telerik team
answered on 20 Feb 2009, 08:03 AM
Hi Dave,

The skin is loaded and can be changed from the server only. For scenarios where you want to have more skins on the same page, I suggest to use standalone RadWindow controls with different skins and to open the corresponding window when needed by using $find() / show().



Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Dave Miller
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or