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

Setting model values doesn't work when validation exists

1 Answer 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 01 Jun 2013, 12:25 PM
I need to set the value of another column in the grid from a custom drop down editor. If a certain value is selected from the drop down, I would like to set some column values to dynamically chosen defaults. This works well with columns that don't have validation set. However, if I try to set the model data by calling options.model.set('column', newValue) from the event handler in the drop down event, the new value is not bound to the grid cell but the validation message is shown as if I tried to enter a null value.
This works well for model fields without validation rules.
How can I set a value in the data source when validation is present?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 05 Jun 2013, 07:32 AM
Hi Tom,

I tried to reproduce the behaviour in a sample page but to no avail. Could you please check my sample and let me know what I am missing?
Is it possible for you to reproduce the problem in jsBin and send me back a link?

In this way I would be able to examine your scenario in details and assist you further.
Thank you in advance for the cooperation.

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Tom
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or