Posted 12 December 2018, 7:19 am EST
Hi,
I set cell background to gray for some rows and set those rows as read only using following code
itemFormatter = (panel, r, c, cell) => {
if (panel.cellType === wjcGrid.CellType.Cell) {
if (panel.rows[r].dataItem.disabled) {
cell.style.backgroundColor = ConstantsService.color.disabledBackground;
panel.rows[r].isReadOnly = true;
}
}
....
the rows get grayed out and read only as expected. The problem is that if I have vertical scrollbar when I have enough rows when I move it up and down some random rows that had white background get gray (disabled) background. Those rows that supposed to have white background but get gray background are editable.
I logged debug info in itemFormatter to verify that disabled property is false for rows that get gray background. So, this does not appear the problem with the code.
Why does not cell background stay in place and is moving randomly when I move scrollbar up and down?
What should I do to prevent that?
thanks