New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Provides data for the DataSourceSelect event of the RadSearchBox control.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class SearchBoxDataSourceSelectEventArgs : EventArgs

Inheritance: objectEventArgsSearchBoxDataSourceSelectEventArgs

Inherited Members EventArgs.Emptyobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the SearchBoxDataSourceSelectEventArgs class.

C#
public SearchBoxDataSourceSelectEventArgs(IDataSource dataSource, string filterString, bool showAllResults, IDictionary userContext, SearchContextItemData contextItem)
Parameters:dataSourceIDataSource

The datasource of the RadSearchBox control.

filterStringstring

The text value of the RadSearchBox control.

showAllResultsbool

Boolean value defining whether all results should be displayed.

userContextIDictionary

Instance of the userContext Dictionary object.

contextItemSearchContextItemData

The selected SearchContextItem item from the search context.

Initializes a new instance of the SearchBoxDataSourceSelectEventArgs class.

C#
public SearchBoxDataSourceSelectEventArgs(IDataSource dataSource, string filterString, bool showAllResults, IDictionary userContext)
Parameters:dataSourceIDataSource

The datasource of the RadSearchBox control.

filterStringstring

The text value of the RadSearchBox control.

showAllResultsbool

Boolean value defining whether all results should be displayed.

userContextIDictionary

Instance of the userContext Dictionary object.

Properties

Gets the DataSource of the RadSearchBox control when the event is raised.

C#
public IDataSource DataSource { get; }
Property Value:

The DataSource of the RadSearchBox control when the event is raised.

Gets the text value of the RadSearchBox control when the event is raised.

C#
public string FilterString { get; }
Property Value:

The text value of the RadSearchBox control when the event is raised.

Gets the currenctly selected SearchContextItem from the search context.

C#
public SearchContextItemData SelectedContextItem { get; }
Property Value:

An instance of the currently selected SearchContextItem from the search context.

Gets whether RadSearchBox should return all matched items.

C#
public bool ShowAllResults { get; }
Property Value:

Boolean value indicating whether RadSearchBox should return all matched items.

Gets the user context added in the ClientDataRequesting event.

C#
public IDictionary UserContext { get; }
Property Value:

An instance of the user context set in the ClientDataRequesting event