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

Trying to impliment font awesome

8 Answers 234 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 05 Feb 2013, 03:40 PM
I need to globally set a class on the combobox dropdown arrow

...but there's no public css property to do that right?  There's one for the control, the dropdown list, the input, and the label....but no button.

So I'm looking for a skinnable property, not a workaround to inherit from he control or parse the dom with jquery, or do any codebehind.  There's too many comobs to just go around updating all the code in every page (hoping to just leverage a .skin file)

Yes, no?...could you add one?
Steve

8 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Feb 2013, 01:06 PM
Hi Steve

I suppose you want to set a css class for the combobox dropdown arrow.
Try the following CSS
CSS:
<style type="text/css">
.RadComboBox_Default .rcbInputCell, .RadComboBox_Default .rcbArrowCell
{
background-image: url('./Images/urdropdownimage') !important;
}
</style>

Thanks
Princy
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 06 Feb 2013, 03:34 PM
Hey Princy,
  No I'm trying to use font-awesome so I need to set the **CLASS**...not style a class :)

Like I need to tell the arrow to be "icon-caret-down" without using any javascript or anything else.  Most controls support this like the RadInputs, I can set the ButtonCssClass to like "icon-search" in the .Skin file, but the RadCombo seems to have not exposed the button class.
0
Ivan Zhekov
Telerik team
answered on 08 Feb 2013, 01:14 PM
Hi, Steve.

Unfortunately, that's not available as of now. In fact this is the first such request we are having. The show more results arrow (down caret) is rendered as is with no logic applied and it can not be overridden.

I completely understand your point -- to use font for icons and it's a valid point.

Yet without any modifications, just from the API attributes that can not be done.

We are almost at the 2013 Q1 release, so such addition will be impossible, yet we could consider it for a future update.

Regards,
Ivan Zhekov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Stefania
Top achievements
Rank 2
answered on 23 Sep 2016, 08:11 AM
Hi, any news about using font awesome into a combobox?
0
Magdalena
Telerik team
answered on 27 Sep 2016, 07:56 AM
Hello Stefania,

Thank you for getting back to us. If you would like us to add some feature to ajax controls, you can log a feature request in our feedback portal, so also other people can vote for it and you will able to follow the item as well.

Regards,
Magdalena
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Hagai
Top achievements
Rank 1
Veteran
answered on 24 Dec 2020, 07:19 PM

Any news about it?

 

I'm using the RadComboBox with the Bootstrap skin and I need that the arrow will look exactly as the native dropdown icon of input select and right now it doesn't have a look at my attached image.

 

How can I do it?

 

0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 24 Dec 2020, 11:16 PM

Wow, old post...

First off the bootstrap skin is still REALLY bad. For it to be a true bootstrap "skin" one should be able to use it on a page and not know it's native or not... RadControls don't remotely go far enough. Should rename to Bootstrap-ish.

That being said, it should be doable with some CSS, I don't have the time to figure it out for you, sorry... just inspect both dropdowns and figure it out.  The bootstrap css is likely already loaded on your page.

0
Peter Milchev
Telerik team
answered on 25 Dec 2020, 10:19 AM

Hello Hagai,

The advice Steve gave you is the way to go, you can inspect the elements and ultimately figure out a way to change the content of the :before pseudo-element for the arrow. Here is a sample CSS style that will change the arrow to a chevron:

.RadComboBox_Bootstrap .rcbActionButton .p-i-arrow-60-down:before {
    content: '\e015'
}

The font family for the icons is actually WebComponentsIcons, so you can check this list of icons and find out the Unicode for the desired icon, in this case, the .k-i-arrow-chevron-down:

Regarding the Bootstrap skin, it is indeed a custom skin and does not use or load Twitter's bootstrap styles and scripts, so there might be some differences but generally, they are designed to blend in with other bootstrap controls.

If you are interested in the integration discussion, you can see this feedback portal item:

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ComboBox
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Princy
Top achievements
Rank 2
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Ivan Zhekov
Telerik team
Stefania
Top achievements
Rank 2
Magdalena
Telerik team
Hagai
Top achievements
Rank 1
Veteran
Peter Milchev
Telerik team
Share this question
or