Grid export with large dataset filtered results

1 Answer 30 Views
Grid
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Deasun asked on 16 Oct 2023, 05:05 PM

Ok I have a grid with many pages and a total of say 1million plus rows!

User filters this grid down to say 7000 rows.

When I click the export all button it will export the rows they filtered. Alls good.

But when they export the whole dataset I have to intercept that to do the export myself and email them a link to it.

My issue is I cant seem to find a way to figure out how many rows are in the filtered version.

So currently I have: ( in the async Task gridRpt_OnBeforeExcelExport(GridBeforeExcelExportEventArgs args) )

If the grid.count > 1000000

then go do my email export procedure

ELSE do the grids default export.

Problem is when the grid is filtered That grid.count is still the big dataset count not the filtered count.

How do I know the filtered count and if that filtered count is still over 1mil how to I export only that filtered set?

 

Hope that makes sense.

Thanks

Deasun.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Oct 2023, 11:35 AM

Hello Deasun,

There are two Grid features that can help you in this case. Use one or both, according to your preferences.

Regards,
Dimo
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
Grid
Asked by
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Answers by
Dimo
Telerik team
Share this question
or