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

Redistributable ascx and skin setting

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 30 Jul 2009, 07:23 AM
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:

http://msdn.microsoft.com/en-us/library/aa479318.aspx

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; }  
        set 
        {  
            _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?

Thanks,

James

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 04 Aug 2009, 01:37 PM
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.
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or