This is a migrated thread and some comments may be shown as answers.

Export to Excel CommandItem

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 10 Dec 2010, 02:26 PM
I'm trying to export my grid to excel using the CommandItem. I'm confused because most of the examplesshow the commandItem as well as a sperate button which acutally does the Excel Export. If that is the case what good is the commandItem. I cant seem to find a C# example of how to exort to excel just using the commandItem. Can someone please point me in the right direction?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 10 Dec 2010, 05:09 PM
Hello Joe,

Here are two demos that use the built-in buttons:
MS Excel/MS Word/CSV
Export to ExcelML

You can enable the export buttons via the CommandItemSettings property:
<MasterTableView CommandItemDisplay="Top">
   <CommandItemSettings ShowExportToExcelButton="true" />
</MasterTableView>

Best regards,
Daniel
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Joe
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or