<ejs-grid #grid [dataSource]='data' [editSettings]='editSettings' [toolbar]='toolbar' allowPaging="true">
<e-columns>
<e-column field='EmployeeID' headerText='Ship City' foreighKeyField="ShipCity" foreignKeyValue="ShipCity" [dataSource]="dropdownData" width='150' textAlign='Right'></e-column>
</e-columns>
</ejs-grid> |
HTML:
<ejs-grid #grid [dataSource]='data' [editSettings]='editSettings' [toolbar]='toolbar' allowPaging="true">
<e-columns>
<e-column field='EmployeeID' headerText='Ship City' foreighKeyField="ShipCity" foreignKeyValue="ShipCity" [dataSource]="dropdownData" [edit]="dpParams" width='150' textAlign='Right'></e-column>
</e-columns>
</ejs-grid>
TypeScript:
this.dpParams = {
params: {
change: function (args: any) {
console.log(args.value); // you can get the dropdown selected items details here
}
}
}; |