Export buttons not visible in grid

4 posts, 1 answers
  1. SR
    SR avatar
    33 posts
    Member since:
    Dec 2013

    Posted 19 Apr 2014 Link to this post

    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 !!!!

      <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" />

  2. Jayesh Goyani
    Jayesh Goyani avatar
    2733 posts
    Member since:
    May 2010

    Posted 20 Apr 2014 in reply to SR Link to this post


    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.

    Jayesh Goyani
  3. SR
    SR avatar
    33 posts
    Member since:
    Dec 2013

    Posted 29 Apr 2014 in reply to Jayesh Goyani Link to this post

    image button not having a text property and try to set position in css class but not use can u provide any other suggestions 
  4. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Apr 2014 in reply to SR Link to this post


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

     <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" />

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

    <style type="text/css">
            float: right !important;

    Provide your code snippet if this doesn't help.
Back to Top