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

Validationbehavior while cancel editing a cell

3 Answers 66 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sternico
Top achievements
Rank 1
Sternico asked on 11 Jul 2011, 12:34 PM

Hello,

I’ve found a strange behavior of the validation while cancel editing a cell. When I edit a cell and enter an invalid value it shows me, that there is an input error. Very nice and cool! But when I cancel the editing with the escape key, the cell resets the content to the previous value. If the previous value was invalid too, there is no error message.

Is there something I can do to fix the problem?

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 12 Jul 2011, 09:42 AM
Hi Sternico,

 The behavior that you have described is the expected one by design. Right now we cannot not recommend any workaround to change this behavior. 

  We are going to take into account your issues and have a discussion about possible future improvements.
   

Regards,
Didie
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Conny
Top achievements
Rank 1
answered on 12 Jun 2013, 07:02 AM
Hi all,

is there any solution for that? I have the same problem. If the cell is not valid and the user presses the escape key I still want to show the red border around the cell. Any suggestions?

Thank you very much.

Best regards,
Conny
0
Dimitrina
Telerik team
answered on 12 Jun 2013, 12:18 PM
Hello Conny,

I have attached a demo project showing invalid cells (when StadiumCapacity's value is less then 50000) and ts rows. If you change the value and then cancel it through the ESC key, then the old invalid value is still shown in red borders.
Would you please check how this approach works for you?

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Sternico
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Conny
Top achievements
Rank 1
Share this question
or