Class
RadListBox

Represents the RadListBox class.

Definition

Namespace:Telerik.WebAii.Controls.Html

Assembly:Telerik.WebAii.Controls.Html.dll

Syntax:

cs-api-definition
public class RadListBox : HtmlContainerControl

Inheritance: objectControlHtmlControlHtmlContainerControlRadListBox

Inherited Members HtmlContainerControl.TextContentHtmlContainerControl.InnerTextHtmlControl.FindParentContainer<TContainerControl>()HtmlControl.ValidateTag(string)HtmlControl.ValidateControl()HtmlControl.ParseResponseValue<T>(string, T)HtmlControl.GetAttributeAsString(string)HtmlControl.InitializeMappings(MappingsCollection)HtmlControl.GetRectangle()HtmlControl.IsVisible()HtmlControl.GetStyleValue(string)HtmlControl.GetStyle(string)HtmlControl.GetComputedStyleValue(string)HtmlControl.GetComputedStyle(string)HtmlControl.Parent<TContainerControl>()HtmlControl.Capture()HtmlControl.Capture(string, string)HtmlControl.Capture(string)HtmlControl.InvokeEvent(ScriptEventType)HtmlControl.InvokeEvent(ScriptEventType, bool)HtmlControl.InvokeEvent(ScriptEvent)HtmlControl.InvokeEvent(ScriptEvent, bool)HtmlControl.AddEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.RemoveEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.MouseClick()HtmlControl.MouseClick(MouseClickType)HtmlControl.MouseClick(MouseClickType, int, int)HtmlControl.MouseClick(MouseClickType, Point, OffsetReference)HtmlControl.MouseClick(MouseClickType, int, int, OffsetReference)HtmlControl.MouseHover()HtmlControl.MouseHover(Point)HtmlControl.MouseHover(int, int)HtmlControl.MouseHover(int, int, OffsetReference)HtmlControl.Click()HtmlControl.Click(bool)HtmlControl.ScrollToVisible()HtmlControl.ScrollToVisible(ScrollToVisibleType)HtmlControl.ScrollToVisible(ScrollToVisibleType, Rectangle)HtmlControl.Download(bool, DownloadOption, string, int)HtmlControl.CallMethod(string)HtmlControl.CallMethod<T>(string)HtmlControl.CallMethod<T>(string, T)HtmlControl.GetValue<T>(string)HtmlControl.GetValue<T>(string, T)HtmlControl.GetValue<T>(string, bool)HtmlControl.GetValue<T>(string, bool, T)HtmlControl.SetValue<T>(string, T)HtmlControl.SetValue<T>(string, T, bool)HtmlControl.Focus()HtmlControl.DragTo(OffsetReference, Point, int, int)HtmlControl.DragTo(OffsetReference, int, int, Rectangle, OffsetReference, int, int)HtmlControl.DragTo(Point)HtmlControl.DragTo(int, int)HtmlControl.DragTo(HtmlControl)HtmlControl.DragTo(HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, Point, HtmlControl)HtmlControl.DragTo(OffsetReference, Point, HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, int, int, bool, HtmlControl, OffsetReference, int, int, bool)HtmlControl.DragToWindowLocation(OffsetReference, int, int, bool, OffsetReference, int, int, bool)HtmlControl.ToString()HtmlControl.AsjQueryControl()HtmlControl.GetElementByTagNameClientSideLocatorHtmlControl.GetElementByIdClientSideLocatorHtmlControl.FindHtmlControl.ScrollTopHtmlControl.ScrollLeftHtmlControl.WaitHtmlControl.IDHtmlControl.CssClassHtmlControl.AttributesHtmlControl.MappingsHtmlControl.StylesHtmlControl.EventsHtmlControl.TagNameHtmlControl.ChildNodesHtmlControl.IsActiveElementHtmlControl.IsEnabledControl.Refresh()Control.AssignFailed(Exception)Control.SetTelerikComponentsVersion(TelerikComponentsVersion?)Control.MatchControl(Element, FindParam)Control.GetFamilyElement(int, Element)Control.ThrowOnInvalidAssignmentControl.TelerikComponentsVersionControl.IsRefreshControl.BaseElementControl.OwnerBrowserControl.Locator

Constructors

RadListBox()

Initializes a new instance of the RadListBox class.

Declaration

cs-api-definition
public RadListBox()

RadListBox(Element)

Initializes a new instance of the RadListBox class.

Declaration

cs-api-definition
public RadListBox(Element element)

Parameters

element

Element

Properties

AllowTransferOnDoubleClick

Get the value of the AllowTransferOnDoubleClick property.

Declaration

cs-api-definition
public bool AllowTransferOnDoubleClick { get; }

Property Value

bool

AutoPostBack

Get whether Listbox AutoPostBack is enabled.

Declaration

cs-api-definition
public bool AutoPostBack { get; }

Property Value

bool

ButtonPosition

ListBox button position.

Declaration

cs-api-definition
public ListBoxButtonPosition ButtonPosition { get; }

Property Value

ListBoxButtonPosition

CheckBoxesEnabled

Get whether the ListBox check box support is enabled.

Declaration

cs-api-definition
public bool CheckBoxesEnabled { get; }

Property Value

bool

CheckedItems

Gets a list of the checked items.

Declaration

cs-api-definition
public IList<RadListBoxItem> CheckedItems { get; }

Property Value

IList<RadListBoxItem>

ClientSideLocator

Get the locator FindParam.

Declaration

cs-api-definition
public override string ClientSideLocator { get; }

Property Value

string

Overrides HtmlControl.ClientSideLocator

DeleteButton

The delete button.

Declaration

cs-api-definition
public HtmlControl DeleteButton { get; }

Property Value

HtmlControl

ElementOffsetWidth

Get the offset width of the Listbox element.

Declaration

cs-api-definition
public int ElementOffsetWidth { get; }

Property Value

int

Enabled

Get whether Listbox is enabled.

Declaration

cs-api-definition
public bool Enabled { get; }

Property Value

bool

Items

Get the list of items.

Declaration

cs-api-definition
public IList<RadListBoxItem> Items { get; }

Property Value

IList<RadListBoxItem>

LocatorExpression

Get the FindExpression.

Declaration

cs-api-definition
public override IFindExpression LocatorExpression { get; }

Property Value

IFindExpression

Overrides Control.LocatorExpression

MoveDownButton

The move down button.

Declaration

cs-api-definition
public HtmlControl MoveDownButton { get; }

Property Value

HtmlControl

MoveUpButton

The move up button.

Declaration

cs-api-definition
public HtmlControl MoveUpButton { get; }

Property Value

HtmlControl

SelectedIndex

Gets the selected index of the RadListBox. Returns '-1' if there is no selected item.

Declaration

cs-api-definition
public int SelectedIndex { get; }

Property Value

int

SelectedItems

Gets a list of the selected items.

Declaration

cs-api-definition
public IList<RadListBoxItem> SelectedItems { get; }

Property Value

IList<RadListBoxItem>

TransferAllFromButton

The transfer all from button.

Declaration

cs-api-definition
public HtmlControl TransferAllFromButton { get; }

Property Value

HtmlControl

TransferAllToButton

The transfer all to button.

Declaration

cs-api-definition
public HtmlControl TransferAllToButton { get; }

Property Value

HtmlControl

TransferFromButton

The transfer from button.

Declaration

cs-api-definition
public HtmlControl TransferFromButton { get; }

Property Value

HtmlControl

TransferToButton

The transfer to button.

Declaration

cs-api-definition
public HtmlControl TransferToButton { get; }

Property Value

HtmlControl

Methods

AssignElement(Element)

Assign the DOM element to be the RadListBox control.

Declaration

cs-api-definition
public override void AssignElement(Element e)

Parameters

e

Element

Overrides HtmlContainerControl.AssignElement(Element)

ControlAssert()

Returns RadControlAssert instance initialized for this control.

Declaration

cs-api-definition
public RadControlAssert ControlAssert()

Returns

RadControlAssert

RadControlAssert instance initialized for this control.

Delete()

Click the delete button.

Declaration

cs-api-definition
public void Delete()

FindItems(Predicate<RadListBoxItem>)

Get a list of items matching the given predicate.

Declaration

cs-api-definition
public IList<RadListBoxItem> FindItems(Predicate<RadListBoxItem> predicate)

Parameters

predicate

Predicate<RadListBoxItem>

The predicate, i.e. (item => item.Text == myText).

Returns

IList<RadListBoxItem>

The items matching the given predicate.

MoveDown()

Click the move down button.

Declaration

cs-api-definition
public void MoveDown()

MoveUp()

Click the move up button.

Declaration

cs-api-definition
public void MoveUp()

TransferAllFrom()

Click the transfer all from button.

Declaration

cs-api-definition
public void TransferAllFrom()

TransferAllTo()

Click the transfer all to button.

Declaration

cs-api-definition
public void TransferAllTo()

TransferFrom()

Click the transfer from button.

Declaration

cs-api-definition
public void TransferFrom()

TransferTo()

Click the transfer to button.

Declaration

cs-api-definition
public void TransferTo()