This example shows how to use a custom toolbar command in Telerik Grid for ASP.NET MVC. Custom commands can be configured to call action methods. In this particular example the custom command is exporting the grid data to CSV (comma separated values) format which can be easily open with Microsoft Excel. If you want, you can export to XLS format (binary Excel), too.
To define a custom command use the following code
<%= Html.Telerik().Grid(Model)
.Name("Grid")
.ToolBar(commands => commands
.Custom() .Text("Export to CSV") .Action("Action", "Controller")
)
%>