Suggestion dropdown doesn't allow empty string

Hi,

I have added an empty string as one of the item in my list, but when i open the suggestbox dropdown, the empty item could not be found. Can this control support empty string item??

3 Replies

KJ Keerthana Jegannathan Syncfusion Team November 3, 2017 10:54 AM UTC

Hi BAO, 
 
Thank you for contacting Syncfusion support. 
 
In SfTextBoxExt, we have filtered the items to the SuggestionBox based on the text entered in it which in turn omits the space entered in it. Therefore, empty string cannot be added as item in SfTextBoxExt. Can you please share the purpose of adding empty string to the control? Based on your update, we will update further in this. 
 
Regards, 
Keerthana J 



BY BAO YADONG November 6, 2017 02:41 AM UTC

Hi,

The reason why i need an empty string in the suggestion box is because the text is not a mandatory field. Can the suggestbox dropdown behave the same like a normal dropdown list? which i can show empty string as one of the option.


Thanks



KJ Keerthana Jegannathan Syncfusion Team November 6, 2017 11:17 AM UTC

Hi BAO  
   
Thanks for your update.   
   
To add empty string as one of the suggestion in drop down, we request you to use our AutoComplete control which helps to achieve it. We have prepared a simple sample in which we have added empty string as one of the suggestion in AutoComplete ItemsSource and it can be downloaded from the below location.   
   
   
Also, please check with the below link to get to know further about AutoComplete control.   
   
   
Regards,   
Keerthana J   


Loader.
Up arrow icon