ClassRadComboBox
Represents the RadComboBox class.
Definition
Namespace:Telerik.WebAii.Controls.Html
Assembly:Telerik.WebAii.Controls.Html.dll
Syntax:
public class RadComboBox : HtmlContainerControl
Inheritance: objectControlHtmlControlHtmlContainerControlRadComboBox
Inherited Members
Constructors
RadComboBox()
Initializes a new instance of the RadComboBox class.
Declaration
public RadComboBox()
RadComboBox(Element)
Initializes a new instance of the RadComboBox class.
Properties
CheckBoxesEnabled
Get whether the ComboBox check box support is enabled.
CheckedItems
Declaration
public IList<RadComboBoxItem> CheckedItems { get; }
Property Value
ClientSideLocator
Get the locator FindParam.
Declaration
public override string ClientSideLocator { get; }
Property Value
Overrides
ComboBoxValue
Gets or set the ComboBox value.
DropDownDiv
Get the drop down div.
DropDownVisible
Gets whether the drop down is visible.
DropDownWidth
Get the drop down width.
ElementOffsetWidth
Get the offset width of the combobox element.
EmptyMessage
Gets or set the empty message text of the RadComboBox.
Enabled
Get whether combobox is enabled.
FilterEnabled
Get whether combobox filtering is enabled.
ItemCount
Used for verifications when SimpleRendering is enabled.
Items
Get the list of items.
Declaration
public IList<RadComboBoxItem> Items { get; }
Property Value
LastWord
Gets the word after the last separator in the text of the combobox. If a separator is not set, returns the text itself.
LocatorExpression
Get the FindExpression.
Declaration
public override IFindExpression LocatorExpression { get; }
Property Value
Overrides
RenderMode
Render mode of combobox.
SelectedIndex
Gets the selected index of the RadComboBox. Returns '-1' if there is no selected item.
SimpleRendering
Get whether combobox simple rendering is enabled.
Text
Gets or set the text of the RadComboBox.
VisibleItems
Get the list of the visible items.
Declaration
public IList<RadComboBoxItem> VisibleItems { get; }
Property Value
Methods
AssignElement(Element)
Assign the DOM element to be the RadComboBox control.
Declaration
public override void AssignElement(Element e)
Parameters
e
Overrides
ControlAssert()
Returns RadControlAssert instance initialized for this control.
Declaration
public RadControlAssert ControlAssert()
Returns
RadControlAssert instance initialized for this control.
FindItem(Predicate<RadComboBoxItem>)
Find item by given predicate.
Declaration
public RadComboBoxItem FindItem(Predicate<RadComboBoxItem> predicate)
Parameters
predicate
The predicate used as a search criteria.
Returns
The item found or 'null' if no item matches the given search criteria.
FindItemByIndex(int)
Finds item by Index.
Declaration
public RadComboBoxItem FindItemByIndex(int itemIndex)
Parameters
itemIndex
Returns
FindItemByText(string)
Finds item by Text.
Declaration
public RadComboBoxItem FindItemByText(string itemText)
Parameters
itemText
Returns
FindItemByValue(string)
Finds item by Value.
Declaration
public RadComboBoxItem FindItemByValue(string itemValue)
Parameters
itemValue
Returns
FindItemIndexByText(string)
Finds item index by text.
FindItemIndexByValue(string)
Finds item index by value.
FindItems(Predicate<RadComboBoxItem>)
Get a list of items matching the given predicate.
Declaration
public IList<RadComboBoxItem> FindItems(Predicate<RadComboBoxItem> predicate)
Parameters
predicate
The predicate, i.e. (item => item.Text == myText).
Returns
The items matching the given predicate.
HideDropDown()
Hide the drop down of RadComboBox.
Declaration
public void HideDropDown()
SelectItemByIndex(int)
Selects item by index.
SelectItemByText(string)
Selects item by Text.
Declaration
public void SelectItemByText(string itemText)
Parameters
itemText
SelectItemByValue(string)
Selects item by Value.
Declaration
public void SelectItemByValue(string itemValue)
Parameters
itemValue
SetText(string, ScrollToVisibleType)
Types the given text to the ComboBox input using default typing speed. Swows the drop down as well.
Declaration
public void SetText(string text, ScrollToVisibleType scrollToVisibleType = ScrollToVisibleType.ElementTopAtWindowTop)
Parameters
text
The text to set.
scrollToVisibleType
Specifies how element should be put into view.
SetText(string, int, ScrollToVisibleType)
Types the given text to the ComboBox input using default typing speed. Swows the drop down as well.
Declaration
public void SetText(string text, int typeSpeed, ScrollToVisibleType scrollToVisibleType = ScrollToVisibleType.ElementTopAtWindowTop)
Parameters
text
The text to set.
typeSpeed
The typing speed (characters typing) in milliseconds.
scrollToVisibleType
Specifies how element should be put into view.
ShowDropDown()
Show the drop down of RadComboBox.
Declaration
public void ShowDropDown()
ToggleDropDown()
Toggle the drop down of RadComboBox.
Declaration
public void ToggleDropDown()