Forum Discussion

whileoneloop's avatar
whileoneloop
New Member
9 years ago
Solved

Exception raised when using Telerik Kendo UI components in PowerBI's visualsandbox

  Attempting to use an external UI library (Telerik Kendo UI) and receiving the following exception:   -- Uncaught TypeError: Illegal invocation at <anonymous>:562:21817 at <anonymous>:562:2721...
  • v-viig's avatar
    9 years ago

    You have to include these code into your code:

    Object.defineProperties(window, {
        'devicePixelRatio': {
            get: function () {
                return window.window.devicePixelRatio;
            }
        },
        'innerWidth': {
            get: function () {
                return window.window.innerWidth;
            }
        }
    });
    
    var kendo = { cultures: {} };
    window.kendo = kendo;
    window.window.kendo = kendo;

    Please take a look at this pull request.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]