Completed
Last Updated: 05 Aug 2019 11:11 by ADMIN
Release 2019.R3
Eduard Töws
Created on: 16 May 2019 14:36
Category: Kendo UI for jQuery
Type: Bug Report
3
Using Custom Build with PDFviewer checked throws an error

Bug report

An error occurs on components' initialization when using a custom Kendo UI build which includes PDFviewer

Reproduction of the problem

  1. Go to Kendo UI Custom Download page
  2. In the "WEB" section select random components including the Grid and PDFviewer
  3. Download the custom build(kendo.custom.min.js file) and put it in the same folder with an HTML file with the following structure.
<!DOCTYPE html>
<html>

<head>
    <style>
        html {
            font-size: 14px;
            font-family: Arial, Helvetica, sans-serif;
        }
    </style>
    <title></title>
    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.2.514/styles/kendo.default-v2.min.css" />

    <script src="https://kendo.cdn.telerik.com/2019.2.514/js/jquery.min.js"></script>
    <script src="./kendo.custom.min.js"></script>
</head>

<body>
    <div id="example">
        <div id="grid"></div>
        <script>
            $(document).ready(function () {
                $("#grid").kendoGrid({
                    dataSource: {
                        type: "odata",
                        transport: {
                            read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
                        },
                        pageSize: 20
                    },
                    height: 550,
                    groupable: true,
                    sortable: true,
                    pageable: {
                        refresh: true,
                        pageSizes: true,
                        buttonCount: 5
                    },
                    columns: [{
                        template: "<div class='customer-name'>#: ContactName #</div>",
                        field: "ContactName",
                        title: "Contact Name",
                        width: 240
                    }, {
                        field: "ContactTitle",
                        title: "Contact Title"
                    }, {
                        field: "CompanyName",
                        title: "Company Name"
                    }, {
                        field: "Country",
                        width: 150
                    }]
                });
            });
        </script>
    </div>
</body>
</html>
  1. The following error appears:
    Uncaught TypeError: Cannot read property 'Toolbar' of undefined

Current behavior

grid_pdf

Expected/desired behavior

A Grid should be initialized properly and without errors if a custom build is including the PDFviewer

Environment

  • Kendo UI version: 2019.2.514
  • jQuery version: x.y
  • Browser: [all]
2 comments
ADMIN
Dimitar
Posted on: 01 Aug 2019 13:24
Hello,

Currently it is not possible to download a working custom script, which includes PDFViewer, built by the Custom Download Builder. We are working on fixing this issue and its fix is planned to be released with R3 2019.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
REIMANN
Posted on: 29 Jul 2019 07:02

Hello, we are facing the same issue when initializing the grid. What was the solution to this?

Kendo UI Version 2019.2.619