All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
How to export the grid with filters enabled? constructor() { this.allData = this.allData.bind(this); } ngOnInit() { this.getGridData(); } public allData(): ExcelExportData { const result: ExcelExportData = { data: process(this.products, {sort: [{ field: 'name', dir: 'asc' }] }).data }; return result; } getGridData(){ this.MyService.getDataGrid().subscribe(data => { data = JSON.parse(data);; this.products= data; this.gridData = process(data, this.state) }); }
How to export the grid with filters enabled?
constructor() { this.allData = this.allData.bind(this); } ngOnInit() { this.getGridData(); } public allData(): ExcelExportData { const result: ExcelExportData = { data: process(this.products, {sort: [{ field: 'name', dir: 'asc' }] }).data }; return result; } getGridData(){ this.MyService.getDataGrid().subscribe(data => { data = JSON.parse(data);; this.products= data; this.gridData = process(data, this.state) }); }
Hello Alex,
The default behaviour of the Grid is to export its current data. This includes the applied filters, so no custom modification will be needed in this case.
Regards, Dimiter Madjarov Progress Telerik
Тhe web is about to get a bit better!
The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.