radgrid built-in export buttons

5 posts, 0 answers
  1. Wilhelm
    Wilhelm avatar
    3 posts
    Member since:
    Jun 2012

    Posted 06 Jun 2013 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Jun 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Wilhelm
    Wilhelm avatar
    3 posts
    Member since:
    Jun 2012

    Posted 06 Jun 2013 Link to this post

    Thank you very much! That was exactly what I needed
  5. Allen
    Allen avatar
    50 posts
    Member since:
    Mar 2011

    Posted 03 Jun 2015 in reply to Shinu Link to this post

    Is there a more complete example with export buttons styling available?
  6. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 08 Jun 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017