BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
[app.component.html]
<button ejs-button cssClass="e-flat" (click)="btnClick()" iconCss="e-btn-sb-icons e-play-icon">Chnage DataSource</button>
<ejs-grid #grid (load)='onLoad($event)' allowReordering='true' [dataSource]='data' allowPaging='true' allowFiltering='true' . . . . >
. . . . .
</ejs-grid >
[app.component.ts]
btnClick() { // loaded more than 1700 records
var curData = this.data;
var i =0;
while (i < 1200) {
curData.push(curData[i]);
i++;
}
this.data = curData;
this.grid.refresh();
}
onLoad() { // loaded 750 records
var curData = orderDataSource.slice(0,750);
var i =0;
while (i < 750) {
(curData[i] as any).OrderID = 10248 + i;
i++;
}
this.data = curData;
} |