ClassAutocompleteBehavior
This class presents a behavior for the autocomplete used in the ItemsControls.
Definition
Namespace:Telerik.Windows.Controls.Primitives
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class AutocompleteBehavior
Inheritance: objectAutocompleteBehavior
Constructors
AutocompleteBehavior()
Initializes a new instance of the AutocompleteBehavior class.
Declaration
public AutocompleteBehavior()
Properties
AllowCustomText
Gets or sets a value indicating whether a custom text is allowed.
AutoCompleteTimeout
Gets or sets the autocomplete timeout. When the timeout is over, the typed text for the autocomplete is reset.
Declaration
public static TimeSpan AutoCompleteTimeout { get; set; }
Property Value
CurrentText
Gets the current text that is used for the autocomplete.
IsIndexSelectable
Gets or sets whether the item associated with the index is selectable.
ItemSearch
Gets or sets the ItemSearch for the autocomplete. The IItemSearchControl object defines the logic how the items are found with the retrievers.
Declaration
public IItemSearchControl ItemSearch { get; set; }
Property Value
LastSelectionLength
Gets the last length of the selection.
LastSelectionStart
Gets the last selection start.
LastText
Gets the last text that is set.
MatchingItem
Gets the matching item.
TextRetriever
Gets or sets the text Retriever that is used for autocomplete.
Declaration
public IValueRetriever TextRetriever { get; set; }
Property Value
TextSearchMode
Gets or sets the text search mode. Specifies how TextSearch will match items.
Declaration
public TextSearchMode TextSearchMode { get; set; }
Property Value
The text search mode.
TextSource
Gets or sets the text source.
Declaration
public ITextSource TextSource { get; set; }
Property Value
Methods
ExtractCurrentText()
Extracts the current text from the current selection to its length.
IsFullMatch(object)
Determines whether the matched item is found with full match or not.
SetCurrentText(string)
Sets a current text for the autocomplete.
TextSourceSelectionChangeDetected()
This property is used to detect whether the test source selection change is detected or not.
TextSourceTextChangeDetected()
This property is used to detect whether the test source text change is detected or not.
UpdateCurrentText()
Updates the current text.
UpdateTextSource(string, string)
Updates the text source according the current and matching item text.
UpdateTextSourceStateCache()
Updates the text source state cache.
Declaration
protected virtual void UpdateTextSourceStateCache()
Events
CurrentTextChanged
Occurs when current text is changed.
MatchingItemChanged
Occurs when matching item is changed.
Declaration
public event EventHandler MatchingItemChanged
Event Value