Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149099 | Nov 14,2019 11:12 AM UTC | Nov 15,2019 07:14 AM UTC | Angular - EJ 2 | 1 |
![]() |
Tags: Grid |
@Component({
selector: 'app-root',
template: `<ejs-grid [dataSource]='data' [editSettings]='editSettings' [toolbar]='toolbar' height='273px'>
<e-columns>
<e-column field='ShipCountry' headerText='Ship Country' editType='dropdownedit' [edit]='ddParams' width=150></e-column>
</e-columns>
</ejs-grid>`
})
export class AppComponent implements OnInit {
public data: Object[];
public editSettings: EditSettingsModel;
public toolbar: ToolbarItems[];
public ddParams: IEditCell;
ngOnInit(): void {
this.data = data;
this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true };
this.toolbar = ['Add', 'Edit', 'Delete', 'Update', 'Cancel'];
this.ddParams = { params: {dataSource: ['test 1', 'test 2'],query: new Query(),placeholder: 'arjuna' } };
}
}
}
|
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.