New to Telerik UI for WinFormsStart a free 30-day trial

IItemsControl

Interface

An interface which provides methods for handling a collection of RadItems. This interface is used throughout controls which represent a list of items.

Definition

Properties

Gets a collection containing the items that are currently active.

C#
RadItemOwnerCollection ActiveItems { get; }

Gets the collection of items associated with the IItemsControl.

C#
RadItemOwnerCollection Items { get; }

Gets or sets a boolean value that determines whether keyboard input will be processed by the IItemsControl.

C#
bool ProcessKeyboard { get; set; }

Gets or sets a boolean value that determines whether the rollover items functionality will be allowed.

C#
bool RollOverItemSelection { get; set; }

Methods

Defines whether the IItemsControl can execute navigation operation based on the keydata provided.

C#
bool CanNavigate(Keys keyData)
Parameters:keyDataKeys

An instance of the Keys struct that defines the key command issued.

Returns:

bool

True if navigation possible, otherwise false.

Defines whether the IItemsControl has an item that corresponds to the mnemonic passed in the parameter.

C#
bool CanProcessMnemonic(char keyData)
Parameters:keyDatachar

A character that defines the mnemonic command issued.

Returns:

bool

True if mnemonic can be processed, otherwise false.

Gets the first visible item from the collection. In a IItemsControl that is the first item that is visible on the control.

C#
RadItem GetFirstVisibleItem()
Returns:

RadItem

A reference to a RadItem instance that represents the first visible control.

Gets the last visible item from the collection. In a IItemsControl that is the last item that is visible on the control.

C#
RadItem GetLastVisibleItem()
Returns:

RadItem

A reference to a RadItem instance that represents the last visible control.

Gets an item from the collection that is next to a certain item.

C#
RadItem GetNextItem(RadItem item, bool forward)
Parameters:itemRadItem

The item which neighbour to return.

forwardbool

The direction in which to look for the neighbour.

Returns:

RadItem

A reference to a RadItem instance which represents the neighbour item.

Returns the selected item in the control.

C#
RadItem GetSelectedItem()
Returns:

RadItem

An reference to a RadItem instance which represents the currently selected item.

Selects the first visible item on the IItemsControl.

C#
RadItem SelectFirstVisibleItem()
Returns:

RadItem

A reference to a RadItem instance that represents the item selected.

Selects an item in the control.

C#
void SelectItem(RadItem item)
Parameters:itemRadItem

A reference to a RadItem instance which represents the item which is to be selected.

Selects the last visible item on the IItemsControl.

C#
RadItem SelectLastVisibleItem()
Returns:

RadItem

A reference to a RadItem instance that represents the item selected.

Selects an item from the collection that is next to a certain item.

C#
RadItem SelectNextItem(RadItem item, bool forward)
Parameters:itemRadItem

The item which neighbour to return.

forwardbool

The direction in which to look for the neighbour.

Returns:

RadItem

A reference to a RadItem instance which represents the neighbour item.

Events

Fires when an item has been deselected.

C#
event ItemSelectedEventHandler ItemDeselected

Fires when an item has been selected.

C#
event ItemSelectedEventHandler ItemSelected