[]
        
(Showing Draft Content)

Auto Complete Mode

MultiSelect supports AutoComplete feature which helps in automatic completion of input by suggesting or appending the values from the list. This feature can be implemented in MultiSelect using AutoCompleteMode property of C1MultiSelect class. The property accepts values from AutoCompleteMode enumeration which specifies the mode for automatic completion in the control through following values:

  • None: Disables the automatic completion
  • Append: Appends remainder of the probable value and highlights it
  • Suggest: Displays dropdown list populated with one or more suggested values
  • SuggestAppend: Appends the probable value and displays a dropdown list populated with suggested values

You can further customize the suggestions which appear on selecting Suggest or SuggestAppend modes by filtering items from the dropdown list based on one of the following filtering criteria:

  • Contains
  • StartWith
  • None

MultiSelect provides these filtering criteria through AutoSuggestMode. For more details, see Auto Suggest Mode topic.

The following GIF displays the how the AutoComplete feature works in MultiSelect.

Autocomplete mode in WPF MultiSelect

To illustrate how the AutoComplete property is used for automatic completion of input, use the following code:

xml

<c1:C1MultiSelect x:Name="mselect" AutoCompleteMode="SuggestAppend" Height="100" Width="350"></c1:C1MultiSelect>

csharp

mselect.AutoCompleteMode = AutoCompleteMode.SuggestAppend;