Select highlighted value on exit (return or tab)

Hi,

I have a SfComboBox as below:
<textInputLayout:SfTextInputLayout
                        x:Name="StateComboBoxLayout"
                        Hint="State"
                        ContainerType="Filled"
                        HelperText="Select state"
                        FocusedStrokeWidth="4"
                        UnfocusedStrokeWidth="2"
                        ErrorColor="Red"
                        ErrorText="State is required."
                        HeightRequest="40"
                        ClassId="required">
                        <combobox:SfComboBox 
                            x:Name="stateComboBox" 
                            IsEditableMode="True" 
                            DataSource="{Binding States}" 
                            WidthRequest="200"
                            HeightRequest="22"
                            TextColor="Gray"
                            Unfocused="Entry_OnUnfocused" 
                            ShowSuggestionsOnFocus="True">
                        </combobox:SfComboBox>
                    </textInputLayout:SfTextInputLayout>

Is there a way to have set the SelectedItem from the highlighted value on exit of the field such as if the user clicks tab or return on the keyboard?

Kind regards,
Judi Smith


1 Reply 1 reply marked as answer

SS Suganya Sethuraman Syncfusion Team January 4, 2021 08:53 AM UTC

Hi Judi,

Greetings from Syncfusion.

We have analyzed your requirement. We have prepared the sample based on the information provided. We would like to suggest that you use the Enter key to select items from the drop down of SfComboBox. Please have the sample for your requirement.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/POC_Combobox1379717363

Please check if the sample satisfies your requirement and let us know if you have any concerns.

Regards,
Suganya Sethuraman.
 



 


Marked as answer
Loader.
Up arrow icon