How to get filtered Data into Excel with Java poi?

1 Answer 476 Views
Excel Export Filter Grid
Tera
Top achievements
Rank 1
Iron
Iron
Tera asked on 04 May 2023, 12:50 PM

I have a kendo grid that contains data that comes from a DB call.
Currently the export excel button extracts all the data equal to the datasource.
It is mapped into java.
I would like that when compiling the filters of the kendo grid when I click on the button it extracts only the filtered data

 


 <kendo-grid
                            [data]="gridData"
                            [pageSize]="state.take"
                            [skip]="state.skip"
                            [sort]="state.sort"
                            [filter]="state.filter"
                            [sortable]="true"
                            [pageable]="true"
                            [filterable]="true"
                            [selectable]="true"
                            [style.minHeight.px]="minMaxHeight"
                            [style.maxHeight.px]="minMaxHeight"
                            (dataStateChange)="dataStateChange($event)">
                            <kendo-grid-column field="name" title="{{'name' | translate}}"></kendo-grid-column>
                            <kendo-grid-column field="month" title="{{'month' | translate}}"></kendo-grid-column>
</kendo-grid>

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 09 May 2023, 06:51 AM

Hi Tera,

Thank you for the provided details.

Please check the following article about how to export only filtered items to Excel:

https://www.telerik.com/kendo-angular-ui/components/knowledge-base/grid-export-filtered-data-excel/

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
Excel Export Filter Grid
Asked by
Tera
Top achievements
Rank 1
Iron
Iron
Answers by
Martin Bechev
Telerik team
Share this question
or