Formula validity

5 posts, 0 answers
  1. Jarred Froman
    Jarred Froman avatar
    57 posts
    Member since:
    Aug 2008

    Posted 08 May 2012 Link to this post

    1) When creating an expression that has a number followed by garbage data, it evaluates to being a valid expression:
    eg:  (MyProperty1 + MyProperty2) * 5kjfakaweri

    2) When creating an expression that has a decimal, if it doesn't have a zero in front of the decimal, it doesn't evaluate the expression:
    eg:  0.02 <-valid , .02 <-invalid

    Thanks,
    Jarred Froman
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 09 May 2012 Link to this post

    Hello,

     I have tested your observations at this online demo. I cannot agree that the expression will be valid when you add some 'garbage' data. 

    You are right about your second point and this is the expected behaviour. You should write the decimal with a leading digit.

    Regards,
    Didie
    the Telerik team

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

  3. DevCraft banner
  4. Jarred Froman
    Jarred Froman avatar
    57 posts
    Member since:
    Aug 2008

    Posted 14 May 2012 Link to this post

    Hi Didie,

    1) I tested the online demo as well and came to the same results, although we are still exhibiting the behavior described below.  We are using the non-sp1 version so maybe it was fixed in the service pack.  We have a release coming up and can not upgrade till after, so we will add in a regular expression to catch the issue and test after push out our latest version of the software.

    2) If my team and I made this same error, we are quite sure our users will too.  Can support be added to the control to allow decimal values to not require a zero in front in these types of instances?

    Thank You,
    Jarred Froman
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 May 2012 Link to this post

    Hi Jarred Froman,

     Indeed, your point is reasonable. I have logged this issue as a Feature Request where you can vote and track its progress.

    Regards,
    Didie
    the Telerik team

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

  6. Jarred Froman
    Jarred Froman avatar
    57 posts
    Member since:
    Aug 2008

    Posted 14 May 2012 Link to this post

    Thanks Didie!
Back to Top
DevCraft banner