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

Assign value from Json to model fields

1 Answer 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 27 Jan 2017, 11:12 AM

We want to set a variable editable value for all grid columns. The value is configured in our json-file, but we don't know how to assign the value from json to the editable option.

http://dojo.telerik.com/@brandung/eKOyi/16

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 31 Jan 2017, 08:37 AM
Hi Michael,

There are several ways to achieve the desired behavior based on the exact setup that you have. In current case you can for example take the "schema.model.fields" option outside the dataSource configuration and extend it with the field settings from the data:

Regards,
Vladimir Iliev
Telerik by Progress
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
Michael
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or