this.priorityParam = {
params: {
allowFiltering: true,
dataSource:this.priorityChoices,
query: new Query(),
actionComplete: () => false
}
};
|
ngOnInit(): void {
this.data = orderDatas;
this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true };
this.toolbar = ['Add', 'Edit', 'Delete', 'Update', 'Cancel'];
this.countryParams = {
params: {
allowFiltering: true,
dataSource: new DataManager(this.country),
fields: { text: 'countryName', value: 'countryName' },
query: new Query(),
actionBegin: onbegin,
actionComplete: () => false
}
};
}
}
function onbegin(args){
args.query.queries = []; // modify the query
}
|