Redistributable ascx and skin setting

2 posts, 0 answers
  1. James
    James avatar
    29 posts
    Member since:
    Sep 2008

    Posted 30 Jul 2009 Link to this post

    I've created an ASCX control which uses a radToolBar and radGrid, and have then created a redistributable version of the control using the technique described here:

    This works really well except that the skin setting does not work. It works fine in the test project I used to create/test/publish the control, so it must be something to do with how the control is referencing skins - maybe the path to the Skins folder?

    I've added a Skin property to the control, and am passing this to the underlying controls as follows:

        private string _Skin;  
        public string Skin  
            get { return _Skin; }  
                _Skin = value;  
                RadToolBar1.EnableEmbeddedSkins = false;  
                RadToolBar1.Skin = _Skin;  
                RadGrid1.EnableEmbeddedSkins = false;  
                RadGrid1.Skin = _Skin;  

    In the project where I'm using the control, its assembly is added as a reference - I'm wondering whether I need to move the control's assembly under this project's directory structure in order for it to pick up the skin properly

    Any thoughts?


  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 04 Aug 2009 Link to this post

    I'm not sure if you resolved this issue or not but I read over your problem and although I haven't re-created it over on my end I'd say the first thing I would do is see what your get function returns (it might actually return the path of the skin it is referencing). If everything seems ok with this function I'd say just drag the skin files along with the directory for the project. I'm not sure if the control's assembly needs to tag along.
Back to Top