Height binding expression doesn't work

3 posts, 0 answers
  1. Raymond
    Raymond avatar
    2 posts
    Member since:
    Jun 2012

    Posted 19 Jan 2017 Link to this post

    I have a binding expression for the Height property of a Picturebox. The height depends on a boolean value.

    =IIF(Fields.LiftVanesUsed,"0,9cm","1,2cm")

    The height of the picturebox becomes around 10 times larger than the height that is provided in the expression.

    How to return the height from an expression?

     

  2. Raymond
    Raymond avatar
    2 posts
    Member since:
    Jun 2012

    Posted 19 Jan 2017 in reply to Raymond Link to this post

    Found the solution already. It appears that the expression is evaluated with the '.' character as decimal seperator. While in the designer in the property box the ', ' character is used as decimal seperator. 

     

    When replacing the ',' for '.' i works.

  3. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 19 Jan 2017 Link to this post

    Hi Raymond,

    There is a change as of R3 2016 - R3 2016 upgrade Path. You need a dot as a decimal separator, and a comma to separate each value. We consider extending functions like Format text function to accept culture.

    Regards,
    Stef
    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