Hi Jonathan,
We have analyzed your query, it is not possible to perform validation as like in JavaScript for a column which are not defined. You must have to define the column to perform validation for that particular column in Blazor Grid. So, based on your requirement, as a workaround we suggest you to set the “Width” property as 0, for the Grid Columns you wish to hide in Grid. So that these columns will be hidden in Grid and will be displayed only for editing along with the ValidationRules. Please use the code below,
We have modified the sample from our previous update. Please download the sample from the link below,
And also we would like to inform you that Grid supports DataAnnotation also. Please refer the documentation link for more details,
Query : I see in the JS version of the grid there's a way to change the defaults of the validator.
We suspect that you are referring to the “Custom Validation”(
https://ej2.syncfusion.com/javascript/documentation/grid/edit/?no-cache=1#custom-validation) feature of JS Grid. If so, currently we do not have support for
Custom Validation in Blazor Grid. We have logged this as a feature task and added to our feature request list. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.
We have considered this requirement for our 2019 Volume 4 Service pack 1 release which is expected to rolled out in the month of January 2020.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.
Please get back to us if you need further assistance.
Regards,
Renjith Singh Rajendran.