I am using following code for RemoteData binding and
virtualization. I have set pagesize to 30 and total records in database is 100. On initialization of page, it
fetch 30 records from server and bind correctly. When I start
scroll, it binds another 30 records. So now my grid has 60 records. I want to export these 60 records. How to achieve this?
app.component.html:
-----------------------------------------
<ejs-grid #grid [dataSource]='indexes | async' [enableVirtualization]='true' (dataStateChange)='dataStateChange($event)'
[pageSettings]='pageOptions' height='500'>
</ejs-grid>
app.component.ts:
ngOnInit(): void {
this.pageOptions = { pageSize: 30 };
const state = { skip: 0, take: 30 };
this.indexService.execute(state);
}
dataStateChange(state: DataStateChangeEventArgs): void {
console.log(state);
this.indexService.execute(state);
}