This is a migrated thread and some comments may be shown as answers.
Change Items' Font without changing the skin
2 Answers 49 Views
This is a migrated thread and some comments may be shown as answers.
Irene
Top achievements
Rank 2
Irene asked on 28 Jul 2009, 08:25 PM
Hi,

I am trying to change Items' font to "Tahoma" without changing the skin. I tried setting Font-Names on the ListBox, on every item (programmatically, Font.Names and Font.Name, even "Font-family:Tahoma;" in Style), no success. Please help. I also have this problem on DropDown and DatePicker.


Thanks in advance,

Irene

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 29 Jul 2009, 08:11 AM
Hello Irene,

You can set the font through the following CSS:

/* RadListBox */
div.RadListBox .rlbText,
div.RadListBox .rlbItem,
div.RadListBox .rlbButtonText,
div.RadListBox .rlbEmptyMessage
{
   font-family: Tahoma, sans-serif;
}

/* RadComboBox */
div.RadComboBox,
div.RadComboBox .rcbInput,
div.RadComboBoxDropDown
{
    font-family: Tahoma, sans-serif
}

/* RadDatePicker */
div.RadPicker .rcTable .riTextBox,
table.RadCalendar .rcMainTable {
    font-family: Tahoma, sans-serif;
}


On a side-note, it's rather tedious to have to type all this - we'll be adding such an option to the Visual Style Builder soon.

All the best,
Alex
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
Irene
Top achievements
Rank 2
answered on 30 Jul 2009, 09:22 PM
Thanks a lot for the answer , it worked. I thought it would be something more simple though, something I can set in the control class itself (I inherit from Telerik controls)


Thanks again,
Irene
Asked by
Irene
Top achievements
Rank 2
Answers by
Alex Gyoshev
Telerik team
Irene
Top achievements
Rank 2
Share this question
or