I've got a Kendo Grid using a custom popup editor. One of the fields is a Kendo dropdownlist which uses a remote datasource.
When a user makes a selection the data associated with the selected item is used to update a couple of the other fields in the popup editor using model.set
.
This is working well: the model and the field are updated.
However, if I then add required validationMessage="This field is required"
to the fields being updated by model.set
the validation error is triggered and the fields are not updated.
I've setup a JSFiddle to demonstrate the problem. In this case, the ProductName in the custom popup editor can be set by clicking the Set Product
button. You'll notice the validation error is triggered, but if you remove the required
attribute from the field it is updated correctly.
Is this a bug? Why is the validation error being triggered when the value is being set?
Edit: just to clarify -- this is when adding new records, not editing existing ones.