2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
How to export current page/selected record?
This KB showcase the example to export the current page/selected records from the Grid. In the ToolbarClick event, we have to update selected records or currentViewData into Grid model and export the Grid.
MVC Razor
Controller
Likewise for ASP.Net Grid, retrieve the Grid model from the HttpContext. Refer the following code example.
ASPX
ASPX.cs
The following screenshot show Exported Grid and Grid with Exporting enabled. Figure 1: CurrentViewData of Grid in Exported Excel
Figure 2: Exporting Grid |
2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.