New to Telerik UI for WPFStart a free 30-day trial

Represents auto-complete provider that handles the Suggest behavior.

Definition

Namespace:Telerik.Windows.Controls.MultiColumnComboBox

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
public class SuggestProvider : INotifyPropertyChanged

Inheritance: objectSuggestProvider

Derived Classes: AppendProviderSearchProviderSuggestAppendProvider

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the SuggestProvider class.

C#
public SuggestProvider(QueryableCollectionView collectionView, SearchStateManager searchStateManager)
Parameters:collectionViewQueryableCollectionViewsearchStateManagerSearchStateManager

Initializes a new instance of the SuggestProvider class.

C#
public SuggestProvider(QueryableCollectionView collectionView)
Parameters:collectionViewQueryableCollectionView

Properties

Gets the auto-complete mode.

C#
protected virtual SearchAutoCompleteMode AutoCompleteMode { get; }

Gets the associated collection view.

C#
protected virtual QueryableCollectionView CollectionView { get; }

Gets or sets the name or path of the property that is displayed for each data item.

C#
public string DisplayMemberPath { get; set; }

Gets or sets a value that indicates whether matched items will be highlighted.

C#
public bool HighlightMatches { get; set; }

Gets or sets value that indicates whether text matching is case sensitive.

C#
public bool MatchCase { get; set; }

Gets or sets the match text.

C#
public string MatchText { get; set; }

Gets or sets the associated SearchStateManager.

C#
protected SearchStateManager SearchStateManager { get; set; }

Gets or sets the text that will be used in filter operation.

C#
public string SearchText { get; set; }

Gets or sets the selection info that indicates text selection.

C#
public AutoCompleteSelectionInfo SelectionInfo { get; set; }

Gets or sets a value that indicates whether match case should be updated.

C#
public bool ShouldSetMatchText { get; set; }

Methods

Returns the current item.

C#
protected virtual object GetCurrentItem()
Returns:

object

Updates the search logic with the new search text value.

C#
protected virtual void HandleSearchTextChanged(string newSearchText)
Parameters:newSearchTextstring

Initializes the associated collection view instance.

C#
protected virtual void InitializeCollectionView(QueryableCollectionView collectionView)
Parameters:collectionViewQueryableCollectionView

Moves CollectionView.CurrentItem to the first item.

C#
public virtual void MoveCurrentToFirst()

Moves CollectionView.CurrentItem to the last item.

C#
public virtual void MoveCurrentToLast()

Moves CollectionView.CurrentItem to the next available.

C#
public virtual void MoveCurrentToNext()

Moves CollectionView.CurrentItem to the previous available.

C#
public virtual void MoveCurrentToPrevious()

Indicates that the current item is being changed.

C#
protected virtual void MovingCurrentItem()

Raises the PropertyChanged event.

C#
protected void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Sets the current item.

C#
protected virtual void SetCurrentItem(object item)
Parameters:itemobject

Sets the match text based on the first found item.

C#
protected virtual void SetMatchText()

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged