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

Angular 2 Component

3 Answers 184 Views
Grid
This is a migrated thread and some comments may be shown as answers.
P
Top achievements
Rank 1
P asked on 13 Apr 2016, 07:58 PM

I am currently investigating the use of the Kendo UI Grid for a new project and need to know if it's possible to wrap it in an Angular 2 component?

 

Thanka

3 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 14 Apr 2016, 03:02 PM

Hi,

yes it is. 

import { Component, Input, Host, ElementRef, OnInit } from 'angular2/core';

declare var $: any;

@Component({
selector: 'k-grid',
template: '<div></div>'
})
export class Grid implements OnInit {


constructor(@Host() private elm: ElementRef) {
}

@Input() options: any;

ngOnInit() {
// Zugriff aufs DOM; Funktioniert NUR mit DOMRendering !!!!
$(this.elm.nativeElement).children().first().kendoGrid(this.options);
}

}

 

Here is an example how to use it:

 

https://github.com/manfredsteyer/angular-2-kendoui/blob/master/wwwroot/app/flug-grid/flug-grid.ts

 

 

0
Krishnan
Top achievements
Rank 1
answered on 22 Jun 2016, 02:41 AM

 

 

I am trying to render a kendogrid wrapped under angular2 component.
I am getting error in the browser console as "net::ERR_INSECURE_RESPONSE" and the grid is not getting rendered. any ideas what is the problem in my code?

Please find the plunker url https://plnkr.co/edit/LOilsvrSnXzdTDMIgG4n?p=preview


I am trying to render a kendogrid wrapped under angular2 component.

I am getting error in the browser console as "net::ERR_INSECURE_RESPONSE" and the grid is not getting rendered. any ideas what is the problem in my code?

Please find the plunker url

I am trying to render a kendogrid wrapped under angular2 component.

I am getting error in the browser console as "net::ERR_INSECURE_RESPONSE" and the grid is not getting rendered. any ideas what is the problem in my code?

Please find the plunker url

0
Petyo
Telerik team
answered on 29 Jun 2016, 07:48 AM
Hello,

The current Kendo UI suite does not provide support Angular 2. Please check our roadmap blog post for details on the new effort. 

Regards,
Petyo
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
P
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Krishnan
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or