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

Definition

Namespace:Telerik.Web.UI

Inheritance: Telerik.Web.UI.SearchContextItemCollection

Methods

Appends an item to the Items collection

JS
add(Telerik.Web.UI.SearchContextItem button): void
Parameters:buttonTelerik.Web.UI.SearchContextItem

The item to insert

Clears the Items collection of RadSearchBox's SearchContext

JS
clear(): void

Iterates through the Items collection

JS
forEach(Function lambda): void
Parameters:lambdaFunction

The function to execute on each iteration

Returns the number of items in the Items collection.

JS
get_count(): Number
Returns:

Number

The number of the buttons

Gets the item from the Items collection residing at the index specified by the parameter.

JS
getItem(Number index): Telerik.Web.UI.SearchContextItem
Parameters:indexNumber

The index of the button that should be returned

Returns:

Telerik.Web.UI.SearchContextItem

Returns SearchContextItem

Gets the index of an item.

JS
indexOf(Telerik.Web.UI.SearchContextItem button): Number
Parameters:buttonTelerik.Web.UI.SearchContextItem

The item to get the index of

Returns:

Number

int

Inserts an item into the Items collection at the position specified by the first (index) parameter

JS
insert(Number index, Telerik.Web.UI.SearchContextItem button): void
Parameters:indexNumber

The index to insert at

buttonTelerik.Web.UI.SearchContextItem

The item to insert

Removes an item from the Items collection

JS
remove(Telerik.Web.UI.SearchContextItem button): void
Parameters:buttonTelerik.Web.UI.SearchContextItem

The item to remove

Removes the item at the specified index.

JS
removeAt(Number index): void
Parameters:indexNumber

The index to remove at

Returns the collection represented as array

JS
toArray(): Telerik.Web.UI.SearchContextItem[]
Returns:

Telerik.Web.UI.SearchContextItem[]

Not finding the help you need?
Contact Support