New Print button on radgrid not showing

6 posts, 0 answers
  1. mike
    mike avatar
    13 posts
    Member since:
    Jul 2011

    Posted 27 Jun Link to this post

    I'm trying to use the new print button on my rad grid but it is not showing, what am I missing. I'm using VS2013 and I upgraded the Telerik.Web.UI dll to version 2016.2.607.45. below is the example code I put together. The Add New record and the Refresh buttons do show, but not the print

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
    <telerik:RadGrid ID="RadGrid1" RenderMode="Lightweight" runat="server" DataSourceID="SqlDataSource2" GridLines="Both" AutoGenerateColumns="true">
    <MasterTableView DataSourceID="SqlDataSource2" CommandItemDisplay="Top">
    <CommandItemSettings ShowPrintButton="true" ShowRefreshButton="true" />
    </MasterTableView>
    </telerik:RadGrid>
    </div>
    </form>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:Northwind %>"
    SelectCommand="SELECT top 20 * FROM Customers" >
    </asp:SqlDataSource>

    </body>
    </html>

  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 29 Jun Link to this post

    Hello,

    I tested the provided code and Print button is showing as expected in the CommandItem. Find attached my test page and see what is the difference on your end. Also confirm that version that is referenced in your project is the latest one(2016.2.607)

    Regards,
    Pavlina
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. mike
    mike avatar
    13 posts
    Member since:
    Jul 2011

    Posted 29 Jun in reply to Pavlina Link to this post

    Interesting, so when I run your page in my project I do not see the print button, I have attached an image of what I'm getting and an image of the properties of the referenced dll. the
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 30 Jun Link to this post

    Hi,

    Did you try to run my website? If yes, what was the result? 

    Regards,
    Pavlina
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  6. mike
    mike avatar
    13 posts
    Member since:
    Jul 2011

    Posted 30 Jun in reply to Pavlina Link to this post

    Same result as the previous image I sent, no Print icon. two things I had to do to run it. I had to switch to the sql database on my machine because I got an error about the mdf you sent being newer than the version my machine supports. your version was 655 and apparently my machine only supports 612 and earlier. the other thing I ended up doing was comment out the authentication mode in the web config as it was causing a fail to connect to the database. After that I set the Print directory to an application in IIS set the app pool to a 4.0 version and then ran it. No print button.

    I routinely only use IE, so I decided to try opening it in chrome and it does show in both chrome and firefox, so it appears to just be an IE thing.

  7. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 01 Jul Link to this post

    Hello,

    Could you confirm that you are not running the page in IE compatibility view, this could be the reason for the missing print icon? IE7 and IE Compat Mode, which triggers IE7 emulation, are not supported as of 2015 Q3.

    Regards,
    Pavlina
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017