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

Defining of editable columns from Grid

3 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thiam Chye
Top achievements
Rank 1
Thiam Chye asked on 16 May 2013, 01:04 AM
Hi there,

I have an unusual use case where we have two tables (Table A and Table B) sharing a single datasource. Both tables has different number of columns which can be editable, e.g. Table A has columns 1-5 editable, while Table B only has column 2 being editable.

Form my understanding, whether a column is editable or not is controlled via the datasource's model. Is there any undocumented configurations where we could define the editable columns when we are defining the Grid? If not, will you be considering it for future updates?

Currently, my workaround is to define a custom editor for these columns, where my editor essentially blocks editing.

Thank you!

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 17 May 2013, 07:29 AM
Hello Thiam,

There is a editable setting in field definition which controls whether the field is editable or not.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Thiam Chye
Top achievements
Rank 1
answered on 17 May 2013, 07:55 AM
Hi Nikolay,

Yes, but this field is defined in the datasource's model. For my use case, I have two Grid instances using the same Datasource. As such, is there a way to configure the editable setting from the Grid instead of from the Datasource's model?

Thank you.
0
Nikolay Rusev
Telerik team
answered on 17 May 2013, 03:04 PM
Hello Thiam,

No, the Grid does not have notion which column is editable and which not. It is all controlled by the DataSource model definition.

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