Skip to content

Commit

Permalink
ROU-4871: Fix Dirty Mark in Action Column inside Group Columns (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
OS-giulianasilva authored Apr 5, 2024
1 parent 3dbbdae commit fa88099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers/DataGrid/Wijmo/Features/DirtyMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ namespace Providers.DataGrid.Wijmo.Feature {
private _isDirtyCell(row: number, col: number): boolean {
const grid = this._grid.provider;
if (this.hasMetadata(row)) {
const binding = this._grid.provider.columns[col].binding;
const targetColumn = this._grid.getColumn(binding);
let isActionColumn = false;

//If the grid is autogenerated, not need to check for action columns.
if (this._grid.autoGenerate === false) {
const targetColumn = this._grid.getColumnByIndex(col);
isActionColumn =
targetColumn && targetColumn.columnType === OSFramework.DataGrid.Enum.ColumnType.Action;
}
//only if it is a column type different from ColumnType.Action, is that
//we want to check the dirty mark.
if (isActionColumn === false) {
const binding = grid.getColumn(col).binding;
const cellValue = grid.getCellData(row, col, false);
const metadata = this.getMetadata(row);
//If the cell isNew we want to have the dirty mark
Expand Down

0 comments on commit fa88099

Please sign in to comment.