Our blazing fast Grid component built with pure JavaScript


Post by gregc »

I want a column that is a combo editor to be read only without losing its combo editor since I use that for the display and filters.

I can get the overall effect with

 grid.readOnly = true

but can I get the same effect with a single column (or field) ?

Last edited by gregc on Sat Mar 13, 2021 1:38 am, edited 1 time in total.

Post by alex.l »

Hi gregc,

Did you try to set readOnly for the editor?

columns: [
    [...] {
        field: 'city',
        text: 'City',
        flex: 1,
        editor: {
            type: 'combo',
            readOnly: true,
            items: ['Stockholm', 'New York', 'Moscow']
        }
    }
]

All the best,
Alex


Post by gregc »

thats where it is, nice, thanks so much!


Post Reply