Clear value when related data not found in SfAutocomplete.

Hey,

I am using Syncfusion autocomplete in my project.I have a list associated to my autocomplete search bar.
If I type something hoping for autocomplete, and I put some text as key and if key value is not in the list autocomplete is not highlighting anything and this is  fine so far.
But, at the click of outside of the search box space of autocomplete the typed key or text which doesn't have any related value in the list remains there its not getting cleared.

I want If the text is not selected in autocomplete or no related value found in the list, then if I click outside of that autocomplete search box the text or typed word automatically will be cleared.Basically same functionality like the functionality cross sign of sfautocomplete search box but any click outside of searchbox will clear tht typed text.

Urgent..!!!

Thanking You.

Regards,
Sourav

1 Reply

RB Rabhia Beham Kathar Mideenar Syncfusion Team June 22, 2018 07:26 AM UTC

Hi Sourav,

Thanks for contacting Syncfusion Support.

We have checked your requirement and have created a workaround sample for the same using SfAutoComplete Control. In the sample, we have cleared the Autocomplete Text when the control is unfocused. Please have the sample from the below link.

Sample Link: https://www.syncfusion.com/downloads/support/forum/138260/ze/SfAutocompleteSample_9_21313497235
 

Please check the sample and let us know if you have any concern.

Regards,
Rabhia Beham K.
 


Loader.
Up arrow icon