Premium support for our pure JavaScript UI components


Post 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.


Post by mats »

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


Post by bherford »

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


Post 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.


Post by bherford »

Thanks


Post Reply