[Data Grid] I want to empty the date field

Forge Component
(32)
Published on 4 Dec (yesterday) by OutSystems R&D
32 votes
Published on 4 Dec (yesterday) by OutSystems R&D

Hi,

I want to know how to easily empty a date item.

If 1900-01-01 is set, it can be emptied, but is it possible to empty the date field value other than that?

You can update value of any cell. Can be checking value on render:

colorRenderer: function(panel, row, column, cell) {
        if (panel.cellType == wijmo.grid.CellType.Cell) { // Only for cells, exclude grid header
            var value = panel.getCellData(row, column);
   
            if( value == "*****"){
                 ****
                }
                
                else {
                  ****
                }
                
            } else {
                panel.setCellData(row, column," your value or empty string")
            }
 
        }
    }