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

Formula validity

4 Answers 86 Views
ExpressionEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jarred Froman
Top achievements
Rank 1
Jarred Froman asked on 08 May 2012, 06:44 PM
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

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 09 May 2012, 08:05 AM
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 >>

0
Jarred Froman
Top achievements
Rank 1
answered on 14 May 2012, 12:58 PM
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
0
Dimitrina
Telerik team
answered on 14 May 2012, 02:26 PM
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 >>

0
Jarred Froman
Top achievements
Rank 1
answered on 14 May 2012, 04:17 PM
Thanks Didie!
Tags
ExpressionEditor
Asked by
Jarred Froman
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Jarred Froman
Top achievements
Rank 1
Share this question
or