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

[Solved] How Can I Change the DataBound Items Font-Family In RadComboBox

1 Answer 195 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Majid Darab
Top achievements
Rank 1
Majid Darab asked on 13 Jan 2010, 08:55 PM
hello my dear lords :
i looked for the change of  the font-family of databound items in radcombobox from a sqldatasource and so i got some instructions in telerik help ...
1-Tutorial: Creating a Custom Skin  :   http://www.telerik.com/help/aspnet-ajax/combo_appearancecustomskintutorial.html
   i did it step by step but it did n't work at all - I don't know what is my broblem but it did n't work
  my question about this tutorial is where are the skin files (css and etc)that combobox uses them such as Office2007???
  I go to this path ( \Program Files\Telerik\<Your Version of RadControls for ASPNET>\Skins\Office2007)and chage this
.RadComboBoxDropDown_Office2007<br> 
{<br> 
&nbsp;&nbsp; &nbsp;font12px "Segoe UI"Arialsans-serif;<br> 
&nbsp;&nbsp; &nbsp;color#333;<br> 
&nbsp;&nbsp; &nbsp;text-alignleft;<br> 

but it did n't work
i know doing this is not my solution and that was a client side job...
after that i change the path of (ComboBox.Office2007ChangeFont.css) from MySkin Folder To The root of my project and then attach it.at this time some(not all) pics have loaded into combobox but there is no font change
i aslo add some items from items property to combobox and changed their fonts to my desire fonts in design time but what about databound items from sqldatasource
in another thread someone had use this :
 <style type="text/css"
   .RadComboBoxDropDown 
   {     
      font-family:tahoma !important;
      font-size:9px !important; 
   }  
</style> 
but how can i tell combobox to use this style --- beside office2007 skin ---
office 2007 skin has own css files and so ...........

please help me about this , step by step like how to instructions...
because i have this peoblem in another components...
god bless you


1 Answer, 1 is accepted

Sort by
0
Poul Henningsen
Top achievements
Rank 1
answered on 15 Jan 2010, 08:38 AM
Wouldn't it be easier for you to make a custom skin for the combobox? If so, you can use the Visual Style Builder to make your custom skin and after that follow the instructions from this help article to manually register the skin.

Cheers,
Poul
Tags
ComboBox
Asked by
Majid Darab
Top achievements
Rank 1
Answers by
Poul Henningsen
Top achievements
Rank 1
Share this question
or