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

Bug: ExpressionChanged not fired correctly

1 Answer 53 Views
ExpressionEditor
This is a migrated thread and some comments may be shown as answers.
Benedikt
Top achievements
Rank 1
Iron
Benedikt asked on 21 Jun 2019, 08:24 AM

Hey,

currently I'm trying to implement the RadExpressionEditor for creating custom Grid view groups. Everything is working fine besides the ExpressionChanged event of the RadExpressionEditor. The event is not called every time the expression changed. If I enter the following expression:

"Sample: " + GetFormattedField("1282", "N2")

Expression changed is called.

if I remove the last bracket ExpressionChanged gets fired and the expression is invalid (this behaviour is correct). If I add the bracket again, ExpressionChanged IS NOT fired. This behaviour occurse in different scenarios. This makes it difficult to trust the system, because we have a lot of invalid expressions, even a valid expression is entered.

Thank you!

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 26 Jun 2019, 08:56 AM
Hello,

Thank you for writing.

Let me start with a quick overview of how the expression editor works so we can work from there. When the user inputs an expression string into the editor its parser is started and the string is evaluated for validity. If the expression is valid the Expression property of the editor is set to the valid expression, if not the property is set to null. This is when the ExpressionChanged event is fired, if the value of the Expression property changes the event gets fired. I tested the expression editor and the behavior was exactly as described above. This is why, I would kindly ask you to send me a sample where the behavior you have described can be reproduced. This will allow me to investigate the exact case you have and to give you the most accurate response possible.

Looking forward to your reply.

Regards,
Ivan Petrov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ExpressionEditor
Asked by
Benedikt
Top achievements
Rank 1
Iron
Answers by
Ivan Petrov
Telerik team
Share this question
or