Class
HighlightBehavior

An interface that is used to calculate an index starting from -1 for the item which is highlighted in the DropDown of the RadAutoCompleteBox.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class HighlightBehavior : IHighlightBehavior

Inheritance: objectHighlightBehavior

Implements: IHighlightBehavior

Constructors

HighlightBehavior()

Declaration

cs-api-definition
public HighlightBehavior()

Methods

FindHighlightedIndex(string, IList, IEnumerable<object>, string, TextSearchMode)

Returns the index of the highlighted item in the DropDown of the RadAutoCompleteBox.

Declaration

cs-api-definition
public virtual int FindHighlightedIndex(string searchText, IList filteredItems, IEnumerable<object> escapedItems, string textSearchPath, TextSearchMode textSearchMode)

Parameters

searchText

string

The string that is into the TextBox part of the RadAutoCompleteBox.

filteredItems

IList

Collection of the items returned by the FilteringBehavior.

escapedItems

IEnumerable<object>

Collection of the items selected items in the RadAutoCompleteBox.

textSearchPath

string

The name or path of the property that is used when filtering for each the data item in the RadAutoCompleteBox.

textSearchMode

TextSearchMode

Specifies the text search mode for the RadAutoCompleteBox.

Returns

int

Implements IHighlightBehavior.FindHighlightedIndex(string, IList, IEnumerable<object>, string, TextSearchMode)