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

New Print button on radgrid not showing

5 Answers 250 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mike
Top achievements
Rank 1
mike asked on 27 Jun 2016, 05:31 PM

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>

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 29 Jun 2016, 11:33 AM
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.
0
mike
Top achievements
Rank 1
answered on 29 Jun 2016, 02:53 PM
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
0
Pavlina
Telerik team
answered on 30 Jun 2016, 07:50 AM
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.
0
mike
Top achievements
Rank 1
answered on 30 Jun 2016, 02:35 PM

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.

0
Pavlina
Telerik team
answered on 01 Jul 2016, 10:58 AM
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.
Tags
Grid
Asked by
mike
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
mike
Top achievements
Rank 1
Share this question
or