Setting up Kendo UI for Vue with CDN

Currently, I am in the process of integrating Kendo UI for Vuejs by utilizing CDN based on the recommendations provided on this page:

https://www.telerik.com/kendo-vue-ui/components/framework-wrapper/using-cdn/

as well as here:

https://www.telerik.com/kendo-vue-ui/components/charts-wrapper/

However, upon attempting this setup, an error message is displayed:

Uncaught ReferenceError: ChartInstaller is not defined"

To demonstrate what I have tried, I have created a jsfiddle:

https://jsfiddle.net/agw1u098/3/

Answer №1

Looks like there was an issue with your jsfiddle when trying to use Kendo UI wrappers for Vue via CDN. The documentation provided by Telerik may not have been clear enough. Here's a corrected implementation that you can try out on the Telerik DOJO.

<!DOCTYPE html>
<html>
<head>
    <base href="https://demos.telerik.com/kendo-ui/daterangepicker/date-range">
    <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
    <title></title>
    <!--Load Kendo styles from the Kendo CDN service-->
    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.3.913/styles/kendo.common.min.css"/>
    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.3.913/styles/kendo.default.min.css"/>

    <!--Load the required libraries - jQuery, Kendo, Babel and Vue-->
    <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2017.3.913/js/kendo.all.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js"></script>
    <script src="https://unpkg.com/vue/dist/vue.min.js"></script>

    <!--Load the required Kendo Vue package(s)-->
    <script src="https://unpkg.com/@progress/kendo-dateinputs-vue-wrapper/dist/cdn/kendo-dateinputs-vue-wrapper.min.js"></script>
    <script src="https://unpkg.com/@progress/kendo-charts-vue-wrapper/dist/cdn/kendo-charts-vue-wrapper.js"></script>

</head>
<body>
  <div id="kendoChart">
    <kendo-chart :title-text="'Kendo Chart Example'"
             :legend-position="'bottom'"
             :series="series"
             :category-axis-categories="categories"
             :value-axis="axis"
             :theme="'bootstrap'">
    </kendo-chart>
  </div>

<script>  
  new Vue({
    el: '#kendoChart',
    data: function() {
      return {
        series: [
          {
            name: 'Temperature',
            data: [20, 25, 32],
            axis: "temperature"
          },{
            name: 'Humidity',
            data: [40, 50, 80],
            axis: "humidity"
          }
        ],
        categories: ["Aug", "Sep", "Oct"],
        axis: [
          {
            name: "temperature",
            labels: {
              format: "{0}C"
            }
          },{
            name: "humidity",
            labels: {
              format: "{0}%"
            }
          }
        ]
      }
    }
  });
</script>    

</body>
</html>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Fetch response headers not being detected by Web Worker

Currently in my chrome extension, I'm utilizing web workers to collect response header cookies from a specific website. Interestingly, when I execute the request on the main thread, the response contains all the expected cookies. However, when the exa ...

Issue with font selection in Fabric.js

I am currently working with fabric js version 1.7.22 alongside angular 7 to create a text editor. I have encountered an issue when trying to add text to the canvas using a custom font as shown in the code snippet below. var canvas= new fabric.Canvas(&apos ...

Error encountered when calling the function .jstree() on a tree structure

While working on MVC4, I attempted to implement a jstree but encountered an issue where the tree view was not displayed when running my application. Upon investigating with Firebug, I came across the following error message: "TypeError: $(...).jstree is ...

Encountering an issue while sending JSON data to a WebAPI that contains an image in bytes format - Receiving an error message stating: "The expression is too long or

My experience with JSON is limited, but I'm currently developing a web service that will receive JSON data from an iOS device and insert it into a database. However, I've encountered an issue with the size of the image byte data which is causing ...

A method for highlighting duplicate rows in a DataTable by formatting them with the same color

I am currently utilizing the DataTable plugin to display rows in a table. I would like to highlight duplicate rows in the same color scheme. Can someone please assist me with this issue? In the example below, the entry for Black Winters is duplicated. I ai ...

The prefixes for Ruby on Rails routes are not properly preprocessed in the .erb.js file

I'm currently working with Rails 4 and encountering an issue with the following file: // apps/assets/javascripts/products.js.erb var getColoursAndMaterialsData = function(onSuccess) { var fd = formdata(); $.post( '<%= data_products_ ...

ESLint: The "react" plugin encountered a conflict

In my development environment, I have a React application within a single npm component package. This React app acts as a demonstration site that consumes the component package in addition to Storybook. local-component-package ├── .storybook ├─ ...

Inconsistencies in spacing between shapes bordering an SVG Circle using D3.js are not consistent across platforms

After creating a SVG circle and surrounding it with rectangles, I am now attempting to draw a group of 2 rectangles. The alignment of the rectangle combo can either be center-facing or outside-facing, depending on the height of the rectangle. However, I am ...

CSS popup experiencing issues due to Iframe integration

As someone who is relatively new to web development and completely self-taught, I've encountered a challenge with an iframe on my page. I have a CSS and JavaScript popup that is triggered by jQuery. The desired behavior is that when a link is clicked, ...

What is the method for accessing Vue.prototype in an external JS file?

"react": "^16.8.6" In main.js, I have defined properties as follows: Object.defineProperties(React.prototype, { apiURL: { value: process.env.API_ROOT, writable: false } }); Furthermore, there is another JavaScript file cal ...

Incorporating external scripts into Angular HTML templates

I recently upgraded to a premium version of Polldaddy and received a script tag for embedding (without the correct id). <script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/0000000.js"></script> I am trying to loa ...

Is there a way to execute the UNet segmentation model in Javascript using TensorFlow JS?

I recently trained a UNet model in Python and saved the model as a Model.h5 file. Following the instructions in the tensorflow JS documentation on How to import a keras model, I used the tensorflowjs_converter tool to convert the model into a Model.json fi ...

Leveraging jQuery plugin within a React ecosystem

While utilizing semantic react, I found myself in need of a date picker. Fortunately, I stumbled upon this library: https://github.com/mdehoog/Semantic-UI-Calendar However, I am unsure how to incorporate it into my react-based project since it's not ...

Navigating through React-router with multiple child elements

Creating one of my routes requires the presence of two children in order to function properly. The main application page, where I set up all the routes, might look something like this: <Route path="/logs" component={Logs}> <Route path="/logs ...

endless refreshing material ui accordion

Facing an issue with infinite rerender while trying to create a controlled accordion component using Material UI accordion. Here is the code snippet, any insights on why this could be causing an infinite rerender? const [expanded, setExpanded] = React.us ...

Switch the paper tab to a dropdown menu in Polymer.js

Can someone assist me in transforming the paper tab into a paper drop down menu in polymer JS? I want the drop-down to appear with a list of values when hovering over the Top menu. Activity Execution <paper-tab cla ...

How can I identify and return false if all the digits from 0 to 9 are matching with other characters in a string?

In my current project, I am focusing on filtering out numerical values only. I have implemented a phone mask using JavaScript on the front end to filter user input to a specific format such as (000)000-000, which includes numbers ranging from [2-9] and [0- ...

You cannot use a return string in an ajax call with onbeforeunload

Trying to make an ajax call and determine whether to navigate away from a page based on the response. This is what has been attempted so far: window.onbeforeunload = function(e) { $.when($.ajax({ url: checkUrl, async: false, ty ...

Android is now asking for location permissions instead of Bluetooth permissions, which may vary depending on the version

I am currently troubleshooting a React Native application that relies heavily on Bluetooth permissions. However, I am encountering an issue with the Android platform where the Bluetooth permissions are appearing as unavailable. I have configured the permi ...

What is the best way to showcase this information within my columns?

I'm facing an issue with VueJS. I have a large dataset that I want to display in columns in a specific order. How can I properly insert the code for this? Thank you for any assistance. [ { "sort": 0, "title": "My title", "description": ...