beforePrint(args) {
var customElem = document.createElement('div');
customElem.innerHTML = document.getElementsByClassName("e-statustext")[0].innerHTML
customElem.appendChild(document.createElement('br'));
// you can customize and append the element based on your requirement.
args.element.insertBefore(customElem, args.element.childNodes[0]);
}
|
beforePrint(args) {
var customElem = document.createElement("div");
customElem.innerHTML =
document.getElementsByClassName("e-statustext")[0].innerHTML +
this.detailGrid.element.innerHTML;
customElem.appendChild(document.createElement("br"));
args.element.append(customElem);
} |
load(){ // bind load event for master grid
this.Grid.on('printGrid-Init', (args)=>{
args.printgrid.dataSource = [this.selRecords] // assign selected records
})
}
|