New to Telerik UI for ASP.NET MVC? Download free 30-day trial
ASP.NET MVC Grid Selection & Export
Loading Demo...
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Material 2
- Material 2 Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
- Main Dark
selection_export.cshtml
Selection_ExportController.cs
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
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
Ctrlkey + 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
Ctrlkey, and make another range selection.
Using This Demo
- Select the cells you want to copy or export.
- Click on the menu icon at the top right of the Data Grid.
- Select one of the options.
- 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.