Posted 4 October 2018, 1:52 am EST
How can we make particular cell in a row of flexgrid readonly?
Or
Make particular cells in a readonly row editable.
Forums Home / Wijmo / General Discussion
Posted by: zam.abdulvahid on 4 October 2018, 1:52 am EST
Posted 4 October 2018, 1:52 am EST
How can we make particular cell in a row of flexgrid readonly?
Or
Make particular cells in a readonly row editable.
Posted 4 October 2018, 7:17 pm EST
To make some cells read-only, you may handle the beginningEdit event and cancel the event if the cell being edited is read-only.
// please refer to the following code snippet
grid.beginningEdit.addHandler((s,e) => {
if(this.isReadOnlyCell(e.row, e.col){
// read-only cell, cancel editing
e.cancel = true;
})
});
You may also refer to the following sample: https://stackblitz.com/edit/angular-k2l4f9?file=app%2Fapp.component.ts
~Sharad