Adding a comment to a cell
When exporting to Excel, add a comment to the cell.
gridView.exportGrid({
type: "excel",
target: "local",
fileName: "gridExportSample.xlsx",
exportMemo: {
author: "Woori Tech International",
callback: (grid, itemIndex, dataRow, column, cellMemo) => {
if (column === "Month" && grid.getValue(itemIndex, column) < 30) {
cellMemo.message = "Less than 10 times.";
return cellMemo
}
if (column === "Age" && grid.getValue(itemIndex, column) > 65) {
cellMemo.message = "You are over 65 years old."
return cellMemo
}
}
},
done: function () {
alert("done excel export")
}
});