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

How to set required field on Kendo popup grid editing with asp.net mvc razor

1 Answer 312 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Veteran
Ed asked on 21 Oct 2020, 02:38 PM

I am following the example form here:

 

https://demos.telerik.com/aspnet-mvc/grid/editing-popup

 

 

which the "Product Name" field is required, however there is nothing in the code the signals that

 

any directions are appreciated 

 

tks

1 Answer, 1 is accepted

Sort by
0
Misho
Telerik team
answered on 23 Oct 2020, 08:24 AM

Hello,

There is a [Required] attribute set for ProductName in the model, which specifies whether the data field value is required:

https://take.ms/uMjuI

More information could be found in the Model validation in ASP.NET Core MVC article.

Best Regards,
Misho
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Ed
Top achievements
Rank 1
Veteran
Answers by
Misho
Telerik team
Share this question
or