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

ExportPDF with Insert Button

1 Answer 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 10 Feb 2010, 12:25 PM

Hi..

         Is there any way to my ExportPDF button with traditional Insert and Refresh button. Usually the insert and Refresh button displays top and also we can adjust the position.

I am facing the issue when i added the ExportPDF button with the Grid. The grid displays only ExportPDF button only.

                    <CommandItemTemplate>                      
                        <asp:LinkButton Font-Bold="true" ForeColor="blue" ID="btnExport" CommandName="lnkExportPDF" 
                            runat="server">ExportPDF</asp:LinkButton> 
                    </CommandItemTemplate> 

It would be better result if i am able to view the Export button at the bottom and also Insert and Refresh button at the top. Can we achieve just like this scenario.

-Thanks

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 10 Feb 2010, 07:07 PM
Hello John,

You can leave the CommandItem intact and put the export button in the footer:
<telerik:GridTemplateColumn>
      ....
    <FooterTemplate>
        <asp:Button runat="server" class="rgExpPDF" ToolTip="Export to PDF" ID="ExportToPDFButton"
            CommandName="ExportToPdf" />
    </FooterTemplate>
</telerik:GridTemplateColumn>

<MasterTableView CommandItemDisplay="Top" ShowFooter="true">

Regards,
Daniel
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
John John
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or