Our blazing fast Grid component built with pure JavaScript


Post by dave »

With reference to the ability to edit data, is it possible to

a. Only specify certain fields for editing, and not all fields?
b. Show a visible indicator as to which fields are editable, e.g decorate the field with a bootstrap form-control class, as an example.
c. Show an accept and cancel button, e.g. a Check and a Cross icon next to the field being edited so that the user can either accept and save, or cancel and restore the previous data.

Thanks,


Post by mats »

a. Only specify certain fields for editing, and not all fields?

Sure, it's all described here https://bryntum.com/docs/grid/#Grid/feature/CellEdit under "Preventing editing of certain cells"

b. Show a visible indicator as to which fields are editable, e.g decorate the field with a bootstrap form-control class, as an example.

Sure just add a CSS class to your cells using the https://bryntum.com/docs/grid/#Grid/column/Column#config-renderer method

c. Show an accept and cancel button, e.g. a Check and a Cross icon next to the field being edited so that the user can either accept and save, or cancel and restore the previous data.

Sure, you can implement something like this yourself. See https://bryntum.com/docs/grid/#Core/widget/Field#property-triggers which allow you to add extra trigger icons which you can react to and call finishEditing or cancelEditing.

https://bryntum.com/docs/grid/#Grid/feature/CellEdit#function-finishEditing
https://bryntum.com/docs/grid/#Grid/feature/CellEdit#function-cancelEditing


Post by dave »

Thanks !


Post Reply