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

Ignore RowValidating Event when UI prepares for viewport

1 Answer 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anon
Top achievements
Rank 1
Anon asked on 25 Feb 2020, 10:37 AM

With the release 2020.1.115 the following changes were made:

The RowValidating event is now fired when the UI virtualization prepares a row to be shown in the viewport. There is a new value in the GridViewEditOperationType enum - None for this specific case.

I need the behaviour before this release. So when UI virtualization prepares a row to be shown in the viewport the validation should not take place. Only when a cell was edited / changed. I need the ValidationResults which are not provided in RowEditEnded Event.

What do I have to change in this case?

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Stoyanov
Telerik team
answered on 28 Feb 2020, 08:30 AM

Hi Matthias,

With the latest version of the UI for WPF controls it is not possible to avoid having the RowValidating event thrown when rows are prepared. That said, we have introduced the None value of the EditOperationType property of the event arguments. If you want to skip the event in that scenario, you can perform a check for that value and avoid performing any action. 

I hope you find this helpful.

Regards,
Vladimir Stoyanov
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
GridView
Asked by
Anon
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or