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

Validate field in Kendo Grid as required with MVVM

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jairo
Top achievements
Rank 1
Jairo asked on 23 May 2017, 11:24 PM

Good afternoon,

Is there a sample on how to validate a field as required/mandatory in a Kendo Grid that allows inline editting and that is bound to a source using MVVM?

I know I can define that in the schema but I don't see how to define the schema with the data-* attributes in this case... should I do it with Javascript manually?

A sample would be nice ..so please if you know of any please share it here.

Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 25 May 2017, 01:24 PM

Hello Jairo,

The schema can not be set using the "data-" attributes. The entire DataSource can be using as shown in the Grid / MVVM demo. 

Regards,
Boyan Dimitrov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Jairo
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or