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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AutoCompleteComponent - Keydown event

Thread ID:

Created:

Updated:

Platform:

Replies:

150039 Dec 18,2019 01:53 PM UTC Dec 19,2019 04:54 AM UTC React - EJ 2 1
loading
Tags: AutoComplete
Sinchan NIkam
Asked On December 18, 2019 01:53 PM UTC

Hi Team,

I need the keydown event for AutoCompleteComponent, for auto populating the items which are to be fetched from the databass based on user enter.

And fetched data is stoted in state variable clients.  

Below is the code snippet.

The OnKeyDown is written in below code. However, it is not triggered. 

<AutoCompleteComponent id="search-client" 
dataSource={this.state.clients} ref={(autocomplete=> { this.searchClient = autocomplete; }}
cssClass="e-outline"
floatLabelType="Auto"                                                                                                                        
onKeyDown={this.handleKeyDown}
onChange={this.getSelectedClient}
fields={value'Name' }} popupHeight="250px" placeholder="Search Group/Company" autofill={true} filterType='StartsWith' />

Please kindly suggest me solution.

Many Thanks,
Sinchan

Sevvandhi Nagulan [Syncfusion]
Replied On December 19, 2019 04:54 AM UTC

Hi Sinchan 
 
Greetings from Syncfusion support. 
 
We have checked the reported requirement. We would like to inform you that we have filtering event which will be triggered for the every keydown action. Kindly refer the below code, 
 
[index.js] 
<AutoCompleteComponent id="games" dataSource={this.sportsData} ref={(AutoComplete) => { this.listObj = AutoComplete; }} placeholder="e.g. Australia" fields={this.fields} filtering={this.onFiltering.bind(this)} /> 
 
Please refer the below sample, 
 
 
Please find the UG documentation link below, 
 
 
Regards,  
Sevvandhi N  


CONFIRMATION

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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon