[Data Grid] I want to empty the date field

Forge Component
(34)
Published on 12 Feb (9 days ago) by OutSystems R&D
34 votes
Published on 12 Feb (9 days ago) 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")
            }
 
        }
    }


Mykola (Nick) Tkachenko wrote:

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")
            }
 
        }
    }



Thank you very much.
I will try.