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

ASP.NET MVC Grid Selection & Export

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
selection_export.cshtml
Selection_ExportController.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The Telerik UI for ASP.NET MVC 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 MVC 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 MVC Data Grid product documentation on export and selection.

Additional Apps

This Grid example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC 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 the ThemeBuilder.

Support & Learning Resources

Additional Resources