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

expression with font awesome

1 Answer 348 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stefania
Top achievements
Rank 2
Stefania asked on 23 Feb 2016, 04:56 PM

Hi,

is it possible to use font-awesome and css inside a text expression?

something like

<i class='fa fa-alarm-icon icon-red'></i>

where fa-alarm-icon and icon-red are declared on my style.css

*.icon-red {color: red; font-size: 1.3em;}

.fa-alarm-icon{position:relative;}
.fa-alarm-icon:before {content:"\f12a";}

 

Thank you

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 25 Feb 2016, 03:45 PM
Hello Stefania,

Telerik Reports are processed and rendered on the server in the selected format, where HTML input can be displayed via HtmlTextBox item. Please check the list of the supported HTML tags and CSS attributes (which does not include font awesome elements).
In general, all items are processed and rendered by Telerik Reporting mechanism and the original HTML of an HtmlTextBox is not placed directly in the final document.

Instead you can use an image as an item's background image or a PictureBox.Value.


Let us know if you have any further questions.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Stefania
Top achievements
Rank 2
Answers by
Stef
Telerik team
Share this question
or