Page 1 of 1

[ANGULAR] Column readOnly: true not working

Posted: Fri Dec 02, 2022 5:34 pm
by bherford

Hello support,

should

readOnly: true

on a column prohibit me from editing a column cell? https://bryntum.com/products/gantt/docs/api/Grid/column/Column#properties
if so, I think I found a bug.

with this code in place { text : 'First name', field : 'firstName', flex : 1, readOnly: true }, I am still able to edit the cell and change it's value here: https://codepen.io/pen?__resourceRoot=https%3A%2F%2Fbryntum.com%2Fproducts%2Fgantt%2Fdocs%2Fapi%2FGrid%2Fcolumn%2FColumn%23properties&editors=001

I am currently only able to disable the cell edit by setting

editor: false

on the column config.


Re: [ANGULAR] Column readOnly: true not working

Posted: Fri Dec 02, 2022 8:44 pm
by mats

No that's inherited from Model level, does not apply to Column (should be hidden)


Re: [ANGULAR] Column readOnly: true not working

Posted: Tue Dec 06, 2022 7:48 pm
by bherford

readOnly does not apply to Column? So it's okay to use editor: false?


Re: [ANGULAR] Column readOnly: true not working

Posted: Tue Dec 06, 2022 7:50 pm
by mats

A Column inherits from Model and this field in defined in Model, it's just not super intuitive what readOnly means in a Column context (it means nothing currently). editor : false is what you should use yes.


Re: [ANGULAR] Column readOnly: true not working

Posted: Tue Dec 06, 2022 7:51 pm
by bherford

Thanks