Editable Support in WPF ComboBox
18 Nov 20181 minute to read
IsEditable
The IsEditable property allows the user to edit the text in the ComboBoxAdv control. The default value is false.
| Property | Description | Type | Data Type | Reference links |
|---|---|---|---|---|
| IsEditable | It is possible to edit the text of ComboBox. | Dependency Property | Boolean | NA |
Adding IsEditable to an application
The IsEditable property can be added directly to an application in the following way.
<syncfusion:ComboBoxAdv IsEditable="true"></syncfusion:ComboBoxAdv>ComboBoxAdv comboBox = new ComboBoxAdv();
comboBox.IsEditable = true;
Auto Complete Support in WPF ComboBox
You can find and select matching items from the drop-down list of the ComboBoxAdv control by using the AutoCompleteMode property. It can be used for both single and multiple selections in editable mode.
There are two different AutoCompleteMode values.
-
None– No suggestion is made. This is the default value. -
Suggest– Suggestions are displayed in a drop-down menu based on the typed text.
Suggest
By setting the AutoCompleteMode property to Suggest, a list of possible matches is suggested and displayed in the drop-down list. The search text is included at the start of the suggested items.
<syncfusion:ComboBoxAdv AutoCompleteMode="Suggest"/>ComboBoxAdv comboBox = new ComboBoxAdv();
combobox.AutoCompleteMode = AutoCompleModes.Suggest;
NOTE
Suggest mode applies only when the
ComboBoxAdvcontrol is populated with anItemsSourcecollection. WhenAutoCompleteModeis set toSuggestandIsTextSearchEnabledis set toTruein editable mode,AutoCompleteModetakes precedence.
NOTE