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

Kendo Tree map in Angular 5

3 Answers 426 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
subin
Top achievements
Rank 1
subin asked on 03 Aug 2018, 09:55 AM
We have implemented Tree map control using Angular 1.5 . Now we planned to upgrade our application to angular 5.
I found kendo-angular-charts,kendo-angular-grid etc were supported by kendo ,But i couldn't find exact package to be added for Kendo tree map using ng add command.

Please advice on this 


Thanks in Advance
Subin

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 07 Aug 2018, 05:19 AM
Hello,

The treemap is not yet available in the Kendo UI Angular suite. You can vote for it in our uservoice forum on this page. In the meantime it should be possible to use the Kendo UI for jQuery treemap using the approach demonstrated here.

Regards,
Daniel
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.
0
subin
Top achievements
Rank 1
answered on 10 Aug 2018, 05:57 AM

Hi Team ,

I tried  JQuery integration with Angular 5 for Kendo tree map control. What  i did is,  added JQuery to node-Modules through npm and register the type in Angularcli . For Kendo pack i added kendo.all.min  in header of index.html  .Then in my component in imported jqury using below command

import * as $ from 'jquery';

and finally i load  tree map sample using below code in ngAfterViewInit method .

$("#treeMap").kendoTreeMap({
dataSource: {
data: [{
name: "foo",
value: 1
}]
},
valueField: "value",
textField: "name"
});

 

But it is not working or throwing any exceptions in console .

 

Please  correct if my approach is wrong.

Thanks in advance

Subin

 

0
Daniel
Telerik team
answered on 13 Aug 2018, 06:15 AM
Hello again,

Please try with the approach suggested in the documentation - import kendo-ui from the npm package:
import '@progress/kendo-ui';
If not possible try adding both jQuery and Kendo as scripts to the header and declare the type. If the Kendo scripts are added to the header and jQuery is imported then jQuery will not be available at the time the Kendo scripts are loaded which will result in error.


Regards,
Daniel
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.
Tags
General Discussions
Asked by
subin
Top achievements
Rank 1
Answers by
Daniel
Telerik team
subin
Top achievements
Rank 1
Share this question
or