Declined
Last Updated: 04 May 2021 18:33 by ADMIN
Avromi
Created on: 04 May 2021 17:46
Category: Grid
Type: Bug Report
0
incell editing validation doesn't work with fluid validator

The new functionality to have the in-cell editing validate based on the model doesn't work with fluid validation. We use a custom component that integrates fluid validation with blazor which works fine for all controls including telerik input controls, but the built in validation for the grid editing doesn't seem to work with it.

Also there seems to be a bug with the validation using standard attribute validation. If the row you are working on has an existing record that does not validation properly, the in-cell editing will stop working once you go in to any cell and make a change. The edit mode on that cell will close as if everything updated ok, but after that, you will not be able to click into any cell to edit. While normally the data should already be valid, there can be scenarios where new validation rules are applied and existing records would become retroactively invalid.

 

Thanks,

Alan

 

1 comment
ADMIN
Marin Bratanov
Posted on: 04 May 2021 18:33

Hello Alan,

We have documented that the grid validation works only with DataAnnotationsValidator (see the bullet about validation in the Notes section), the FluentValidator is a third party tool that we can't support because we can't encumber all our customers with such a dependency.

If you want to use third party validators, they must integrate with an EditContext, and you can receive it as a regular cascading parameter in a custom component in the editor template (this is how one would handle any custom integration with an EditContext anyway).

With that said, I must mark this as "declined" because it is not a valid bug in the scenarios the component supports.

As for the second case you report where the grid becomes unresponsive - unsatisfied validation should not allow you to close the cell in the first place. Once a row closes for editing altogether, there should be no edit context. If you can reproduce a problem with a valid scenario, please modify the sample from the docs and send it to us (preferably in a new ticket/thread so we can keep each discussion concise).

Regards,
Marin Bratanov
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.