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

radgrid built-in export buttons

4 Answers 768 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wilhelm
Top achievements
Rank 1
Wilhelm asked on 06 Jun 2013, 08:11 AM
Good day , i have tried to add the built-in export buttons to my radgrid, for some reason the are not showing. I have added the following tag under the tableview element

<CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true"
 
                ShowExportToCsvButton="true" ShowExportToPdfButton="true"></CommandItemSettings>

Is there any other settings i have to enable for the built-in export buttons to work?. I would like to use the built in ones because i have many grids throughout my project and dont want to manually add 5 export buttons for every i grid.

Any help would be greatly appreciated

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Jun 2013, 08:34 AM
Hi,

Please make sure that you have added the CommandItemDisplay property of the MasterTableView. Please take a look into the following code snippet I tried.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="false">
    <MasterTableView CommandItemDisplay="Top">
        <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true"
            ShowExportToCsvButton="true" ShowExportToPdfButton="true"></CommandItemSettings>
        <Columns>
            <telerik:GridBoundColumn DataField="OrderID">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Please provide your code if it doesn't help.

Thanks,
Shinu.
0
Wilhelm
Top achievements
Rank 1
answered on 06 Jun 2013, 09:36 AM
Thank you very much! That was exactly what I needed
0
Allen
Top achievements
Rank 2
Iron
Veteran
answered on 03 Jun 2015, 08:17 PM
Is there a more complete example with export buttons styling available?
0
Eyup
Telerik team
answered on 08 Jun 2015, 12:20 PM
Hi Allen,

I'm sending a sample RadGrid web site to demonstrate the built-in Export button. Alternatively, you can initiate an Export command using external buttons:
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/excel-export/defaultcs.aspx

Hope this helps.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Wilhelm
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Wilhelm
Top achievements
Rank 1
Allen
Top achievements
Rank 2
Iron
Veteran
Eyup
Telerik team
Share this question
or