Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146212 | Jul 25,2019 07:59 PM UTC | Sep 10,2019 05:07 AM UTC | Angular - EJ 2 | 2 |
![]() |
Tags: TreeGrid |
In app.component.html
<ejs-treegrid #treegrid (load)='load($event)' [dataSource]='data' childMapping='subtasks' [treeColumnIndex]='0' [columns]="treegridColumns">
</ejs-treegrid>
<ng-template let-data #template1>
<button ejs-button>Button</button>
</ng-template>
In app.component.ts
ngAfterViewInit(){
this.treegridColumns = [{ field: "taskID", isPrimaryKey: "true", headerText: "Task ID", width: "90" },
{ headerText: "taskName", width: "90", template: this.temp1}];
}
load(args: any): void {
var tree = this.treegrid
this.treegrid.grid.load = function(args){
this['viewContainerRef'] = tree['viewContainerRef'];
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.