Hello !
I want to be able to add Columns dynamically and dropdownedit also. But I cannot succeed to see the list of values in the dropdown when I edit or add a row.
<ejs-grid #grid [dataSource]='datat' [editSettings]='editSettings' [toolbar]='toolbar' height='272px' >
[columns]='columns'>
</ejs-grid>
public data: any;
public columns: Object[];
public toolbar: ToolbarItems[];
public editSettings: EditSettingsModel;
ngOnInit() {
this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Dialog', showDeleteConfirmDialog: true };
this.toolbar = ['Add', 'Edit', 'Delete'];
this.columns = [
{
field: 'Currency', editType: 'dropdownedit', width: 150,
edit: { params: { query: new Query(), dataSource: [{ text: 'USD' }, { text: 'GBP' }, { text: 'EUR' }], fields: { text: 'text', value: 'text' } } }
}
];
}
Shame on me...
You was right !!
thank you so much !