pdfQueryCellInfo(args) {
if (args.column.field === 'CustomerID' && args.value === "VINET") {
args.style = { textBrushColor: '#0000FF' };
}
} |
pdfHeaderQueryCellInfo(args) {
(args.cell.row).pdfGrid.headers.rows[0].height = 40;
},
pdfQueryCellInfo(args) {
for (var i = 0; i < (args.cell.row).pdfGrid.rows.rowCollection.length; i++) {
(args.cell.row).pdfGrid.rows.rowCollection[i].height = 40; //set your height here
}
},
|
if (args.column.field == 'CustomerID' && args.value.startsWith('H')) {
// get the particular cell and change the font
args.cell.row.gridCells.cells[1].style.font = new ej.pdfexport.PdfTrueTypeFont(window.adventProFont, 8) // set the font here 8-font size
args.style = { backgroundColor: '#99ffcc' };
}
|
pdfHeaderQueryCellInfo(args) {
var backColor = this.$refs.grid_vue.$el.ej2_instances[0].pdfExportModule.hexToRgb('#ffff00');
args.cell.style.textBrush.color = new ej.pdfexport.PdfColor(0, 255, 255);
// get the particular cell and customize the formatting as you want
args.cell.gridRow.cells.getCell(1).style.font = new ej.pdfexport.PdfTrueTypeFont(window.adventProFont, 7)
args.cell.gridRow.cells.getCell(1).style.backgroundBrush = new ej.pdfexport.PdfSolidBrush(new ej.pdfexport.PdfColor(backColor.r, backColor.g, backColor.b));
}
|