Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149140 | Nov 15,2019 02:33 PM UTC | Nov 19,2019 01:39 PM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: TreeGrid |
read: (args) => {
if(args.classList.contains("e-autocomplete")){
return this.autoCompleteObj.value;
}
else
return this.dropDown.value;
}
write: (args: { rowData: Object, column: Column, element: HTMLElement }) => {
if(args.rowData["taskName"] == "Design"){
this.dropDown = new DropDownList({
dataSource: <{ [key: string]: Object }[] >this.treegrid.grid.dataSource,
fields: {value: 'taskName', text:"taskName"}
});
this.dropDown.appendTo(args.element);
}else{
this.autoCompleteObj = new AutoComplete({
dataSource: <{key: string, value: any}[]>this.treegrid.grid.dataSource,
fields: { value: 'taskName' },
value: args.rowData[args.column.field]
});
this.autoCompleteObj.appendTo(args.element);
}
} |
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.