Bug: ExpressionChanged not fired correctly

2 posts, 0 answers
  1. Benedikt
    Benedikt avatar
    4 posts
    Member since:
    Jun 2017

    Posted 21 Jun 2019 Link to this post


    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!

  2. Ivan Petrov
    Ivan Petrov avatar
    715 posts

    Posted 26 Jun 2019 Link to this post


    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.

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