Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150190 | Dec 25,2019 02:15 AM UTC | Dec 30,2019 11:10 AM UTC | Angular - EJ 2 | 1 |
![]() |
Tags: Schedule |
Hi, I previously asked a question about customizing auto complete and it worked as described here - https://www.syncfusion.com/forums/148115/auto-complete-remote-data
I tried to follow the same example within scheduler editor window, but it doesn't work for me. Can you pls provide a working example showing how I can use autocomplete inside editor window?
let atcObj: AutoComplete = new AutoComplete({
dataSource: countries,
fields: { value: 'text' },
placeholder: 'e.g. Algeria',
popupHeight: '450px',
highlight: true,
suggestionCount: 5,
minLength:3,
select: function (selectArgs){
console.log('se args:' + selectArgs.itemData);
},
filtering : function (e: FilteringEventArgs, remote: AutoCompleteComponent){ // Remote obj is always undfined
if (e.text.length >= this.minLength) {
this.data = this.clientsService.getUsersAutoComplete(remote, e.text);
e.preventDefaultAction = true;
}
else {
e.cancel = true;
}
}
});
atcObj.appendTo(inputEle);
inputEle.setAttribute('name', 'customerDdl');
}
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.