Change skin on client side open

3 posts, 0 answers
  1. Dave Miller
    Dave Miller avatar
    64 posts
    Member since:
    Oct 2004

    Posted 19 Feb 2009 Link to this post

    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.Skin = "Gray";  

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Feb 2009 Link to this post

    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.

  3. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 20 Feb 2009 Link to this post

    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.
Back to Top