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

     <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.
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

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

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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 
    Thks,
  5. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

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

    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
Back to Top