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

[Solved] Specifying skin for dropdown column

5 Answers 101 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 04 Aug 2009, 11:55 AM
I have a grid and a skin specified for that and it works fine.  However, on the contained GridDropDownColumn columns, when it shifts to edit mode, the combo box is created nicely, but does NOT inherit the skin of the grid as the text boxes do.  This results is a mixture of font sizes in the edit row (inline edit).

How can I tell the created ComboBox which skin to use?

Thanks!

5 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 04 Aug 2009, 07:22 PM
I'm not sure if I'm thinking of this a little too simplistic, so please let me know if you're thinking of something a little more advanced. When defining what skin to use the code (for a ComboBox for example) could look something like this:

<telerik:RadComboBox ID="RadComboBox1" Runat="server" Skin="Black"></telerik:RadComboBox> 
Something that you could possibly do is basically declare a variable that will keep the name of the skin you would like to use and you could always assign any new objects with this variable, so lets say that a variable mySkin.Text = "Black" and then any time you want to use that particular skin you simply would say:
Skin="mySkin"
Is that sort of what you had in mind?
0
Kevin
Top achievements
Rank 1
answered on 04 Aug 2009, 07:32 PM

No... my grid has a specified skin.

Then I have a "rad:GridDropDownColumn" as one of the columns.  I want to be able to specify the skin for this column.

 

0
Veselin Vasilev
Telerik team
answered on 05 Aug 2009, 12:51 PM
Hello Kevin,

Actually the combobox inherits the Skin from the Grid. You can see it here and here.

Greetings,
Veselin Vasilev
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.
0
Wei
Top achievements
Rank 2
answered on 22 Sep 2009, 07:55 PM

Hi Veselin,
I have a problem with skins apply to RadCombobox. We use the  Telerik.Web.UI namespace.

The code is like

<telerik:RadComboBox skin="WebBlue" ID="ddlProgramClientList" runat="server" EnableLoadOnDemand="True"

AllowCustomText="True" ItemRequestTimeout="500" Height="200px" font-size="8pt"

ShowMoreResultsBox="true" HighlightTemplatedItems="true" OffsetX="-100" DropDownWidth="680px"

MaxLength="30" CssClass="RadComboRegular">

Everything seems to be ok, as there is a "More" image (a triangle image) at the bottom of the RadCombobox, and when hit, more items will be loaded in to control, 20 items each time when the image is hit. However when we change the skin to "
Vista", that image at the bottom disappears and we could only have 20 items available. Could you please help to sort it out?

Thanks.

0
Veselin Vasilev
Telerik team
answered on 25 Sep 2009, 01:33 PM
Hello Wei,

Can you reproduce that in our online demo? Can you?
Does it make any difference if you remove the CssClass="RadComboRegular" from the combo's declaration?


Sincerely yours,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Kevin
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Kevin
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Wei
Top achievements
Rank 2
Share this question
or