Skip to content

CellClass doesn't change on cellEditing. #1773

@roedit

Description

@roedit

Hi.
I found a new issue.
cellClass: function(grid, row, col, rowRenderIndex, colRenderIndex) {
if (grid.getCellValue(row,col) === 'Velity') {
return 'blue';
}
}
I'm editing the grid and change the random cell value to 'Velity', And the grid does not apply the class on the cell.
Also I'm updating the cellClass after editing and nothing happens.
gridApi.edit.on.afterCellEdit($scope,function(rowEntity, colDef, newValue, oldValue){
colDef.cellClass = 'orange';
$scope.$apply();
});
Tried also with a function instead of the 'orange' string . And still nothing.
Also i tried to reset the grid after it.
gridApi.core.refresh();

Nothing seems to be working , only rebuilding the grid.
Could you please help me with an advice, or tell me if i'm wrong ??
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions