Hi,
The display value in bool type column of ejs-grid are "true" or "false", our customer require to display "Yes" or "No", please help.
Thanks,
CZ
Hi Sujith,
We don't want to modify values in data source, we only want to change UI alone, display 'yes', 'no' in the Boolean field.
Thanks,
CZ
|
// Grid’s queryCellInfo event handler
queryCellInfo: function (args) {
// Check if the event is executed for the Boolean column
if (args.column.field === "Verified") {
var newVal = args.cell.innerText === "true" ? "Yes" : "No";
// Here the cell value is modified in the UI level
args.cell.innerText = newVal;
}
} |