Hi AC,
Thank you for contacting Syncfusion Support.
We analyzed your query. The events that you mentioned are called whenever the data is loaded from the remote server in the AutoComplete component. The actionComplete is failed to call when the data is not fetched from the remote server. On searching, the events are called on each request. Please refer the code block below,
|
@Component({
selector: 'my-app',
template: `<ejs-autocomplete id='ddlelement' #samples [dataSource]='data' [fields]='fields' [placeholder]='text' [query]='query' [sortOrder]='sorting' (actionBegin)='onActionBegin($event)' (actionComplete)='onActionComplete($event)'></ejs-autocomplete>`,
})
export class AppComponent {
//name = 'Angular 6';
//bind the DataManager instance to dataSource property
public data: DataManager = new DataManager({
url: 'https://j.syncfusion.com/demos/ejServices/Wcf/Northwind.svc/',
adaptor: new ODataAdaptor,
crossDomain: true
});
// maps the appropriate column to fields property
public fields: Object = { text: 'ContactName', value: 'CustomerID' };
//bind the Query instance to query property
public query: Query = new Query().from('Customers').select(['ContactName', 'CustomerID']).take(6);
//set the placeholder to DropDownList input
public text: string = "Select a customer";
//sort the result items
public sorting: string = 'Ascending';
onActionBegin(args) {
console.log(args);
}
onActionComplete(args) {
console.log(args);
}
}
|
Please refer the api in the below link,
On filtering the data if you want to make any changes, please refer the below link for filtering details,
Please refer the sample in the below link,
Please let us know, if there is any concern.
Regards
Ilakkiya B