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

another case that CellValidating is not fired

4 Answers 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
shortie
Top achievements
Rank 2
shortie asked on 02 Feb 2010, 10:52 AM
Hello,

Today, we found that if we changed the value of a cell in a grid first, then use mouse to click on the empty data area of that grid. The CellValidating event won't get fired. Currently, we found 3 cases that CellValidating event won't fire:

1. press ESC when editing
(sometimes the data loaded from db contains error. we need to check it even when user is aborting editing by press ESC)
2. click on the scroll bar when editing
3. cllick on the empty data area when editing

We need fixes to these very very quickly. Do you have any info when will these get fixed. Our customers continued to complain about these bugs and nothing we can do with this situation.

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 02 Feb 2010, 11:28 AM
Hi ChunChang,

Thank you for contacting us.

1. CellValidating does not fire in this case as the data is not changed upon pressing the ESC key e.g. no validation is necessary in this case.

2. The same as in the ESC case; the new value is discarded and the old value remains.

3. I cannot actually reproduce that case. When clicking on the empty grid data area, the editor is not closed and the editing continues.

Greetings,
Nick
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
shortie
Top achievements
Rank 2
answered on 02 Feb 2010, 12:28 PM
Hello Nick,

Thanks for replying so quickly. :)

1. We can understand your point. But as I said in my first article, sometimes we need CellValidting to be fired even when user press ESC. Can you consider to make this a configurable behavior?
2.3. Please see the attached images. If you still have problems to reproduce them, I can send you a small event test program.

Best regards,
shortie
0
Nick
Telerik team
answered on 02 Feb 2010, 01:07 PM
Hi ChunChang,

Thank you for contacting us.

1. We cannot change the event, but I suppose that there might be another more appropriate event in this case. Perhpas you can use CellEndEdit. It fires when you press the ESC key.

2.3. I think that you need to use CellEndEdit in those situations as well.

If the above does not help, please send me a sample project and I will find a solution. Please note that you need to start a new support ticket so that you can attach zips.

Regards,
Nick
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
shortie
Top achievements
Rank 2
answered on 03 Feb 2010, 12:40 AM
Hi Nick,

Thanks for your reply.

I will create a ticket and attach a sample program to demonstrate the problems we have.

BR/shortie

Tags
GridView
Asked by
shortie
Top achievements
Rank 2
Answers by
Nick
Telerik team
shortie
Top achievements
Rank 2
Share this question
or