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

Use Kendo in Power BI Custom Visual : getEmitOutput is not a function

4 Answers 595 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 18 May 2016, 02:09 AM

I would like to use kendo in powerbi custom visuals using the powerbi dev tool at https://xxx.powerbi.com/devTools. When I try to include the contents of 1) kendo.all.js 2) kendo.all.d.ts, I receive the error message in power bi:

angular.min.js:116 TypeError: d.getModel(...).getMode(...).getEmitOutput is not a function at Object.s [as compile] (extensibility.min.js:3) at a.compile (extensibility.min.js:1) at extensibility.min.js:1 at m.$emit (angular.min.js:144) at m.t.compile (extensibility.min.js:1) at fn (eval at <anonymous> (angular.min.js:1), <anonymous>:4:212) at b (angular.min.js:124) at e (angular.min.js:268) at m.$eval (angular.min.js:142) at m.$apply (angular.min.js:143)

4 Answers, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 19 May 2016, 04:25 PM
Hi Patrick,

The provided stack trace is pointing towards getEmitOutput(). This function is related to TypeScript. My initial suggestion would be to remove kendo.all.d.ts. and check if the issue still remains. 

To help me establish what could be causing the error, please provide more details about the way you are using Power BI:

- Which product are you using?
- Is it Desktop or Mobile Version?
- Are you able to reproduce the problem in a simplified web page that is outside the Power BI environment?
- ...include any relevant details  

Kind Regards,
Alex
Telerik 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Patrick
Top achievements
Rank 1
answered on 21 May 2016, 01:51 AM

The issue only occurs when I try to use Kendo.

I am using power bi as a product.  They have a developer tool where you can add custom visuals.

It is a web / desktop app.

I only have this error in the power bi environment.

Powerbi is a typescript application so I need the typescript to integrate.

 

0
Patrick
Top achievements
Rank 1
answered on 23 May 2016, 05:55 PM

As an update, I was able to get this to work but... without the full kendo ui.  I only included a very small subset of files needed for multiselect from the opensource core.

This gist of the work around is here: https://gist.github.com/jcbowyer/5df55d4758a7614ca08d71eaf640fc57

I still would like to determine how to include the full kendo library rather than just the opensource components.

0
Alex Hajigeorgieva
Telerik team
answered on 25 May 2016, 08:41 AM

Hello Patrick,

I am glad that you managed to find a custom solution to integrate Kendo UI Core with Microsoft Power BI.

It looks like a possible approach for your scenario is to import the widgets one by one as described in the guide here:

https://powerbi.microsoft.com/en-us/documentation/powerbi-custom-visuals-getting-started-with-developer-tools/

As a side note, I would suggest to try using the Kendo UI TypeScript definitions outside of the Microsoft Power BI environment. If the problem is not reproducing, I would recommend to forward the case to the Microsoft Power BI Support team as they will provide more relevant insight regarding the environment, since we are not specialists in the area.

Kind

Regards,
Alex
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Patrick
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
Patrick
Top achievements
Rank 1
Share this question
or