Posted 28 December 2017, 8:05 pm EST
Hi,
I am currently evaluating wijmo for one of our product.
I am able to implement itemformatter on flexgrid to capture the edited cell and also i am able to change the style of the cell. But when i am rebinding the grid with the same data, the style stays the same for that particular cell. I have tried “refresh” and “refreshAll” but did not work. Could you please help me on how to refresh the flexgrid to set the cell style to default.
Below is the code sample:
//ts
itemFormatter(panel, r, c, cell) {
if (panel.cellType == wjGrid.CellType.Cell) {
cell.style.border = getChanged(panel.grid, r, c) ? ‘2px solid red’ : ‘’;
}
}
onUpdate(){
this.wjdataValid = new wjCore.CollectionView(this.validatedDetails);
this.wjdataValid.refresh();
}