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.
Unfortunately, activation email could not send to your email. Please try again.

Get the Text when ComboBox is in Editable mode

Thread ID:

Created:

Updated:

Platform:

Replies:

130669 May 24,2017 10:24 AM May 31,2017 03:10 AM UWP 5
loading
Tags: SfComboBox
Molino Charles
Asked On May 24, 2017 10:24 AM

Hello,
I was looking for a control wich I can select from a list or type what I want and I find the syncfusion Combobx.
But I'm afraid I can only type item from the list, if I want to get a text that is not in the list, ComboBox.SelectedValue ( or Item ) will return null.
So I wonder if there is a way to do it or if it's not possible for the moment.

Thanks you and Best Regards,
Charles

Keerthana Jegannathan [Syncfusion]
Replied On May 25, 2017 08:31 AM

Hi Molino, 
 
Thank you for contacting Syncfusion support. 
 
We suspect that your requirement is to add the entered text into the ItemCollection of SfComboBox if it is not already present. If so, at present there is no default support for your requirement, but we have prepared a workaround sample to meet your requirement by adding the entered text while pressing enter key of SfComboBox in KeyDown event and it can be downloaded from the below location. 
 
 
Regards, 
Keerthana J 


Molino Charles
Replied On May 26, 2017 03:05 AM

Thanks you very much, that's exactly what I want to achieve.

Regards,
Charles

Keerthana Jegannathan [Syncfusion]
Replied On May 28, 2017 11:57 PM

Hi Charles, 
 
Thanks for your update. 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Keerthana J 


Molino Charles
Replied On May 30, 2017 04:07 AM

Hi,
I test my application on a tablet, and I found out that when I select one item from the list, it might open the keyboard but not every time.
I wonder if there is a way to prevent that.
I tried with InputPane.TryHide() but that doesn't seem to work.

Regards,
Charles

edit: I find a way with InputPane.GetForCurrentView().Showing += MainPage_Showing;

private void MainPage_Showing( InputPane sender, InputPaneVisibilityEventArgs args){    
      InputPane.GetForCurrentView().TryHide();
}

But there is a problem because we see the keyboard showing and hiding, that's quick but we see it.
So I'm looking either for another solution or for a way to hide the animation.

Regards, 
Charles

Keerthana Jegannathan [Syncfusion]
Replied On May 31, 2017 03:10 AM

Hi Charles  
   
Thanks for your update.   
    
At present, there is no other alternative to hide the keyboard when item is selected from the SfComboBox other than your suggestion. Animation occurs when control has an editable option. We have checked this behavior with MS AutoSuggestBox control. We could see that the same behavior exist in this control.   
    
Please let us know if you need further assistance on this.   
   
Regards,   
Keerthana J   


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.

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.

;