New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core Grid Selection and Export

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
selection_export.cshtml
Selection_ExportController.cs
OrderViewModel.cs
Selection_Export_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The Telerik UI for ASP.NET Core Grid enables users to work with subsets of Data Grid data such as single ranges, multiple ranges, or specific cells by providing the following capabilities, as demonstrated in this example:

  • Copying and pasting of selected ranges and cells.
  • Exporting data ranges and cells to an MS Excel spreadsheet.
  • Exporting valid data ranges to Telerik UI for ASP.NET Core Chart

Utilizing the Selection Modes

  • Cell combinations—Using the Ctrl key + left-click combination, selects cells by clicking on them.
  • Range—Left-click on one of the cells and drag the mouse across other cells.
  • Range combination—Make a range selection, press the Ctrl key, and make another range selection.

Using This Demo

  1. Select the cells you want to copy or export.
  2. Click on the menu icon at the top right of the Data Grid.
  3. Select one of the options.
  4. When exporting to the Chart, make sure that both ShipCountry and Freight cells are selected.

For more information about exporting selected content, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on export and selection.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources