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

Conditional Formatting Question

1 Answer 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Johnathan
Top achievements
Rank 1
Johnathan asked on 01 Aug 2011, 03:44 PM
What is the syntax for the conditional formatting dialog to have the style in one textbox change based on the value of another textbox?

I have tried:

=textBox1.Value < =textBox2.Value
=textBox1 < =textBox2
textBox1.Value < textBox2.Value
textBox1 < textBox2
=Fields.textBox1 < =Fields.textBox2

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 04 Aug 2011, 11:41 AM
Hi Johnathan,

Telerik Reporting is data driven reporting solution. Thus for conditional formatting rules our suggestion is to utilize the data field used by the another textbox. For example if you have textboxes with the following values:
  • textbox1.Value =Fields.MyField1
  • textbox2.Value =Fields.MyField2
our suggestion is to set the conditional formatting rule as shown in the following example:
 Expression Operator  Value 
 =Fields.MyField1
 <=  =Fields.MyField2

Additionally you may find useful Conditional Formatting Rules Dialog and Conditional Formatting help articles.

Best wishes,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Johnathan
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or