Our blazing fast Grid component built with pure JavaScript


Post by henrique »

When a column is configured with "readOnly" property, the column can't be renamed. But only the data is read only, but the rename must be allowed, I guess.

Any possibility to change this behavior?


Post by tasnim »

Hello,

I'm not sure, what you're looking for. Could you please explain a bit more? If you want to make a column not editable
You could set editor: false inside of the column.

If you set the editor to false then I will let you rename the column

Is it what you're looking for?


Post by henrique »

Sorry by my English, but I'm talking about the column title. I activated the "ColumnRename" feature, and when the column is read only, I can't change the column title, the menu is disabled.

Image.png
Image.png (29.3 KiB) Viewed 207 times

Post by mats »

Just don't set the column to be readOnly and all will work fine.


Post by henrique »

Of course, but the cell edit is enabled, and the user can't change the values from this column, so, this is not good solution.


Post by mats »

As Tasnim said, you should configure read only columns as:

`editor: false` 

Post by henrique »

So, why exists the "readOnly" property?


Post by mats »

It's since a Column is a data model and we support it in the superclass, it's not so relevant in this case and we'll likely hide this docs option to avoid confusion.


Post Reply