Definition
Namespace:Telerik.Web.UI
Inheritance: Telerik.Web.UI.SearchContextItemCollection
Methods
Appends an item to the Items collection
add(Telerik.Web.UI.SearchContextItem button): void
The item to insert
Clears the Items collection of RadSearchBox's SearchContext
clear(): void
Iterates through the Items collection
forEach(Function lambda): void
The function to execute on each iteration
Returns the number of items in the Items collection.
get_count(): Number
Number
The number of the buttons
Gets the item from the Items collection residing at the index specified by the parameter.
getItem(Number index): Telerik.Web.UI.SearchContextItem
The index of the button that should be returned
Returns:Telerik.Web.UI.SearchContextItem
Returns SearchContextItem
Gets the index of an item.
indexOf(Telerik.Web.UI.SearchContextItem button): Number
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
insert(Number index, Telerik.Web.UI.SearchContextItem button): void
The index to insert at
buttonTelerik.Web.UI.SearchContextItemThe item to insert
Removes an item from the Items collection
remove(Telerik.Web.UI.SearchContextItem button): void
The item to remove
Removes the item at the specified index.
removeAt(Number index): void
The index to remove at
Returns the collection represented as array
toArray(): Telerik.Web.UI.SearchContextItem[]
Telerik.Web.UI.SearchContextItem[]