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. Image for the cookie policy date
close icon

Make combo box not editable and hide keyboard

Hello,

am using SfComboBox to provide a control to select one or more items from a list, but not to allow to enter a free text value. 

Am using following XAML code to render the control:
<sfcom:SfComboBox x:Name="cmbLabels"                                                            
                                  IsEditableMode="False"
                                  TokensWrapMode="None"
                                  IsSelectedItemsVisibleInDropDown="false"
                                  MultiSelectMode="Token">
                        <sfcom:SfComboBox.TokenSettings>
                            <sfcom:TokenSettings FontSize="15" 
                                            BackgroundColor="#66ccff" 
                                            TextColor="White" 
                                            SelectedBackgroundColor="#ffffe0" 
                                            DeleteButtonColor="Navy"                                          
                                            IsCloseButtonVisible="true" 
                                            CornerRadius="10">
                            </sfcom:TokenSettings>
                        </sfcom:SfComboBox.TokenSettings>
                    </sfcom:SfComboBox>

I have three issues with this:
1. Although IsEditableMode is set to false (which is also default) the SfCombo allows to enter a free text item. Any way how to disable free text editing?

2. When I tap to the Combo it displays the list (which is OK) but also shows the virtual keyboard (which is not OK) and the keyboard overlaps the list of options. Is there a way how to supress the keyboard? See the example below - "Altoona" is the first option, then there are four more options that are hidden by the keyboard. 





Any ideas?

thanks

Jiri


3 Replies

MK Muneesh Kumar G Syncfusion Team April 9, 2019 07:33 AM UTC

Hi Jiri, 
 
Greetings from Syncfusion, we have checked the reported problem in SfComboBox Control and unfortunately, we could not able to reproduce the same from our side.  
 
We have prepared a sample with MultiSelect Mode set as Token and IsEditableMode as False and it is working as expected. Please have the sample from the below link, 
 
 
Screenshot :  
 
 
 
Please check with the sample and if the issue still persists please modify the sample and provide us the device with which the issue is reproduced which will be helpful for us to analyze further and provide an appropriate solution. 
 
Thanks, 
Muneesh Kumar G. 



JM Jiri Matejka April 9, 2019 09:19 PM UTC

Thanks for the example,  I appreciate that. 

Seems to be resolved by upgrading to 17.1.0.40 build (the same as in your example). I was on 16.* (roughly two month ago build). 

Thanks for your help!

Jiri


MK Muneesh Kumar G Syncfusion Team April 11, 2019 05:54 AM UTC

Hi Jiri, 
 
We are glad to know that the given solution works. Please let us know if you need any further assistance. 
             
Thanks, 
Muneesh Kumar G. 


Loader.
Live Chat Icon For mobile
Up arrow icon