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

Default control properties

1 Answer 56 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 23 May 2013, 04:00 PM
I searched around for an answer to this and the most closely related answer said that default properties were handled by the skin manager but did not show how to do it.  I am wondering if there is a way that I can set default values for controls.  Say that all inputs in my project should have a width of 100px .  Could I define that RadTextBoxes, RadComboBoxes, etc. should have 100px by default if not explicitly set on my markup?  Possibly in the webconfig file?

1 Answer, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 1
answered on 24 May 2013, 02:12 PM
I do this in my myTheme.skin file.  Just don't have a SkinID associated with your default properties.  You would have to do it for each control though.

<tel:RadCombobox Runat="server" Width="100px" />

<tel:RadNumericTextBox runat="server" Width="100px" />

 

 

 

Tags
SkinManager
Asked by
Trevor
Top achievements
Rank 1
Answers by
Ryan
Top achievements
Rank 1
Share this question
or