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

[Solved] Showing Export to excel in command item in C#

1 Answer 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PM
Top achievements
Rank 1
PM asked on 13 Mar 2010, 11:27 AM
Hi All,

I have a RadGrid on page, i did not assigned any properties to it, just simply i places a grid on page as below

and generating a a datatable dynamically and binding it to grid,

now my issue is, i want to provide export to excel option on command iten tab on top.

how can i achieve this, please help me.

<telerik:RadGrid ID="RadGrid1" runat="server" > 
</telerik:RadGrid> 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Mar 2010, 06:17 AM

Hello,

The code snippet shown below will help you in showing export button in Command item of grid.

C#:

 
    RadGrid2.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;  
    RadGrid2.MasterTableView.CommandItemSettings.ShowExportToExcelButton = true

-Shinu.

Tags
Grid
Asked by
PM
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or