HTML text box

2 posts, 1 answers
  1. Naureen
    Naureen avatar
    17 posts
    Member since:
    Oct 2016

    Posted 23 Dec 2016 Link to this post

    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
  2. Answer
    Stef avatar
    3610 posts

    Posted 26 Dec 2016 Link to this post

    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.

    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
Back to Top