Class
AsyncFilteringBehavior

Async filtering behavior which uses multithreading for faster data processing.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public sealed class AsyncFilteringBehavior : IFilteringBehavior, IAsyncItemSearch, IValueRetriever, IDisposable

Inheritance: objectAsyncFilteringBehavior

Implements: IAsyncItemSearchIDisposableIFilteringBehaviorIValueRetriever

Constructors

AsyncFilteringBehavior()

Declaration

cs-api-definition
public AsyncFilteringBehavior()

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, resetting unmanaged resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

FindItems(Predicate<object>)

Used a match predicate to find searched items.

Declaration

cs-api-definition
public void FindItems(Predicate<object> match)

Parameters

match

Predicate<object>

The match predicate.

Implements IAsyncItemSearch.FindItems(Predicate<object>)

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

Find matching items using given criteria.

Declaration

cs-api-definition
public IEnumerable<object> FindMatchingItems(string searchText, IList items, IEnumerable<object> escapedItems, string textSearchPath, TextSearchMode textSearchMode)

Parameters

searchText

string

Text for search.

items

IList

The items for search.

escapedItems

IEnumerable<object>

Items which will be escaped when searching.

textSearchPath

string

The path for applying search.

textSearchMode

TextSearchMode

The text search mode.

Returns

IEnumerable<object>

A collection with the matching items or an empty collection if no items are found.

Implements IFilteringBehavior.FindMatchingItems(string, IList, IEnumerable<object>, string, TextSearchMode)

GetValue(object)

Get values for search items.

Declaration

cs-api-definition
public object GetValue(object item)

Parameters

item

object

The object to get value.

Returns

object

Value for that object.

Implements IValueRetriever.GetValue(object)

Events

ItemsFound

Occurs when the items search completes.

Declaration

cs-api-definition
public event EventHandler<AsyncItemSearchEventArgs> ItemsFound

Event Value

EventHandler<AsyncItemSearchEventArgs>

Implements IAsyncItemSearch.ItemsFound