Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144082 | Apr 17,2019 02:13 PM UTC | Apr 22,2019 11:26 AM UTC | JavaScript - EJ 2 | 5 |
![]() |
Tags: AutoComplete |
var autoObj = new ej.dropdowns.AutoComplete({
dataSource: members,
fields: { value: 'text' },
floatLabelType: 'Always', placeholder: 'Team Members',
created: function(){
autoObj.focusIn();
}
});
autoObj.appendTo(inputEle);
|
Hi S_Line,
Thanks for your update.
We have checked your scenario and the cause of the problem
is autocomplete component render before popup open event, so dialog not opened
and element not append to DOM. In popupOpen
event argument returned popup element and take the popup instance and bind the open event,
call the autocomplete focusIn
method. Please find code snippet and sample for your reference.
args.element.ej2_instances[0].open = function() { autoObj.focusIn(); } |
Sample Link: https://stackblitz.com/edit/eoh4qc-qty2if?file=index.js
Regards,
Gopi G.
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.