We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ejautocomplete and keypress

Thread ID:





127006 Oct 20,2016 02:33 PM UTC Oct 24,2016 08:56 AM UTC JavaScript 3
Tags: ejAutoCompleteTextBox
Asked On October 20, 2016 02:33 PM UTC

I'm using a ejAutocomplete and i need to call a function to perform a search when the user press ENTER (staying on the field). I found in the documentation that this control doesn't have an event for that, Am I right?
I can use something like this:
.keypress(function(event) {
but the problem is that the user can press ENTER when is selecting an option from the list producing an undesirable effect.
Is there a solution to this problem? maybe some way to check if the user is or not selecting an item from the list in the keypress or something like that?


Karthikeyan Viswanathan [Syncfusion]
Replied On October 21, 2016 07:08 AM UTC

Hi Ignacio,  
Thanks for contacting Syncfusion Support.  
Query: “way to check if the user is or not selecting an item from the list”  
Yes, you can check the active item in the list using the getActiveText() method.  
JS Playground sample link: http://jsplayground.syncfusion.com/0eicxmmr     
Karthikeyan V.  

Replied On October 21, 2016 03:19 PM UTC

Great, thanks!!

Karthikeyan Viswanathan [Syncfusion]
Replied On October 24, 2016 08:56 AM UTC

Hi Ignacio, 
Thanks for the update. 
We are glad the suggestion helped you to achieve your requirement. 
Please let us know if you need further assistance. 
Karthikeyan V.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon