Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146027 | Jul 17,2019 11:25 AM UTC | Jul 24,2019 01:03 PM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Grid |
<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
}
}
}; |
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.