conditional formatting vs conditional styles

2 posts, 0 answers
  1. kellyroberts
    kellyroberts avatar
    45 posts
    Member since:
    Jul 2007

    Posted 04 May 2010 Link to this post

    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 ;-)

  2. Milen
    Milen avatar
    164 posts

    Posted 07 May 2010 Link to this post


    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:
    Edit Bindings Dialog

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