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

Export buttons not visible in grid

3 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SR
Top achievements
Rank 1
SR asked on 19 Apr 2014, 02:14 PM
Problem is I am Adding a AddNew link button in CommandItem Template So Export buttons not  visible 

Then using the following code works Crome and IE but firefox is showing those buttons again any suggestions !!!!

 <CommandItemTemplate>
  <asp:LinkButton ID="lnkAdd" runat="server" Text="Add New" CommandName="AddNew"></asp:LinkButton>
<asp:Button ID="expbexcel" CommandName="ExportToExcel" CssClass="rgExpXLS" runat="server" />   
 <asp:Button ID="expbdoc" CommandName="ExportToWord" CssClass="rgExpDOC" runat="server" />    
<asp:Button ID="expbpdf" CommandName="ExportToPdf" CssClass="rgExpPDF" runat="server" />   
 <asp:Button ID="expbcsv" CommandName="ExportToCsv" CssClass="rgExpCSV" runat="server" />
 </CommandItemTemplate>

Thanks 
SR.

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 21 Apr 2014, 04:59 AM
Hello,

Please try with the below code snippet.

Can you please provide Text  property in your export button and check it?

I think this issue is raised because of CSS issue. So, please set the position inside cssClass to show image in ExportButton.

Thanks,
Jayesh Goyani
0
SR
Top achievements
Rank 1
answered on 29 Apr 2014, 10:16 AM
image button not having a text property and try to set position in css class but not use can u provide any other suggestions 
Thks,
0
Accepted
Shinu
Top achievements
Rank 2
answered on 29 Apr 2014, 11:43 AM
Hi,

I was not able to replicate the issue at my end. Please take a look at the below code:

ASPX:
<CommandItemTemplate>
 <asp:Button ID="btnADD" runat="server" Text=" " CssClass="rgAdd" CommandName="InitInsert" />
 <asp:Button ID="btnCSV" runat="server" Text=" " CssClass="rgExpCSV" CommandName="ExportToCSV" />
 <asp:Button ID="btnExcel" runat="server" Text=" " CssClass="rgExpXLS" CommandName="ExportToExcel" />
 <asp:Button ID="btnPDF" runat="server" Text=" " CssClass="rgExpPDF" CommandName="ExportToPDF" />
</CommandItemTemplate>

In case you want to style the class you can try the following CSS:

CSS:
<style type="text/css">
    .rgExpXLS
    {
        float: right !important;
    }
</style>

Provide your code snippet if this doesn't help.
Thanks,
Shinu
Tags
Grid
Asked by
SR
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
SR
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or