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

HTML text box

1 Answer 716 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Naureen
Top achievements
Rank 1
Naureen asked on 23 Dec 2016, 07:05 PM
how can i apply if statement in side html text box to format a word from the value in a different color based on certain condition

1 Answer, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 26 Dec 2016, 09:52 AM
Hello Naureen,

If the style will be for the whole item, you can use conditional formatting.

If you need to use the built-in functions in the expression of an HtmlTextBox.Value, you can use embedded expressionse.g.:
test test <span style='color:{IIf(Fields.orderNumber>10,"red","blue")}'> color </span>
It is important to escape special symbols and {} brackets.


You can modify the HTML in a user function as well.

Regards,
Stef
Telerik by Progress
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
Report Designer (standalone)
Asked by
Naureen
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or