Format function doesn't work in htmlTextBox

0 Answers 42 Views
Report Designer (standalone)
Wojciech
Top achievements
Rank 1
Iron
Wojciech asked on 17 Jul 2023, 11:39 AM

Hi, when i try to paste

{Format('{0}',12.34)}

to htmlTextBox and apply it changes Value to empty.

Is it bug?

When I switch to html view it disappears also.

Wojciech
Top achievements
Rank 1
Iron
commented on 17 Jul 2023, 12:24 PM

I will answer my question, after double curly brackets it works:


{Format('{{0}}',12.34)}

Momchil
Telerik team
commented on 20 Jul 2023, 06:58 AM

Hi Wojciech,

You are correct.

When using Embedded Expressions, curly brackets in string literals should be escaped with double curly brackets.

Also, the Expressions as Values article contains some additional information about expression syntax.

No answers yet. Maybe you can help?

Tags
Report Designer (standalone)
Asked by
Wojciech
Top achievements
Rank 1
Iron
Share this question
or