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

conditional formatting vs conditional styles

1 Answer 154 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
kellyroberts
Top achievements
Rank 1
kellyroberts asked on 04 May 2010, 07:01 PM
Telerik -

the textbox context menu item 'Conditional Formatting...' is a bit misleading ...  it seems like it really means Conditional style.  I have 2 fields in a dataset (value and rowtype).  one can have both numeric and char values, the other column is a format specifier string.  So depending on the value of the first column I want to format the second column.  currently I am doing this with expressions on the textbox but as you can imagine its alot of IIFs to test for the format specifier.

It would really help if i had a formatting button on the conditional expression dialog ...

photo attached ... see! ive already done 1/2 the work for you ;-)

1 Answer, 1 is accepted

Sort by
0
Milen | Product Manager @DX
Telerik team
answered on 07 May 2010, 04:53 PM
Hi,

Thank you for the form face lift, Kelly :-)

The good news is that you can use expression based Format property using the Bindings property of the TextBox item used for the value data field.

The binding would be something like:
Property path: Format
Value: =IIf(IsNumeric(Fields.value), "{0:N2}", "")
(let IsNumeric be a User Defined Function)

The ConditionalFormatting property and dialog is named on the well known feature (see MS Excel for example), and has nothing in common with the Format property. It is a bit misleading, by the way.

For detailed information on property binding, see:
Bindings
Edit Bindings Dialog

Regards,
Milen
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
kellyroberts
Top achievements
Rank 1
Answers by
Milen | Product Manager @DX
Telerik team
Share this question
or