Provides data for the DataSourceSelect event of the RadSearchBox control.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class SearchBoxDataSourceSelectEventArgs : EventArgs
Inheritance: objectEventArgsSearchBoxDataSourceSelectEventArgs
Inherited Members
Constructors
Initializes a new instance of the SearchBoxDataSourceSelectEventArgs class.
public SearchBoxDataSourceSelectEventArgs(IDataSource dataSource, string filterString, bool showAllResults, IDictionary userContext, SearchContextItemData contextItem)
The datasource of the RadSearchBox control.
filterStringstringThe text value of the RadSearchBox control.
showAllResultsboolBoolean value defining whether all results should be displayed.
userContextIDictionaryInstance of the userContext Dictionary object.
contextItemSearchContextItemDataThe selected SearchContextItem item from the search context.
Initializes a new instance of the SearchBoxDataSourceSelectEventArgs class.
public SearchBoxDataSourceSelectEventArgs(IDataSource dataSource, string filterString, bool showAllResults, IDictionary userContext)
The datasource of the RadSearchBox control.
filterStringstringThe text value of the RadSearchBox control.
showAllResultsboolBoolean value defining whether all results should be displayed.
userContextIDictionaryInstance of the userContext Dictionary object.
Properties
Gets the DataSource of the RadSearchBox control when the event is raised.
public IDataSource DataSource { get; }
The DataSource of the RadSearchBox control when the event is raised.
Gets the text value of the RadSearchBox control when the event is raised.
public string FilterString { get; }
The text value of the RadSearchBox control when the event is raised.
Gets the currenctly selected SearchContextItem from the search context.
public SearchContextItemData SelectedContextItem { get; }
An instance of the currently selected SearchContextItem from the search context.
Gets whether RadSearchBox should return all matched items.
public bool ShowAllResults { get; }
Boolean value indicating whether RadSearchBox should return all matched items.
Gets the user context added in the ClientDataRequesting event.
public IDictionary UserContext { get; }
An instance of the user context set in the ClientDataRequesting event