RadItemsControlImpl
Represents an encapsulated implementation of the IItemsControl interface. Provides core functionality for item selection, navigation, and keyboard processing in controls that manage collections of RadItem objects.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class RadItemsControlImpl : IItemsControl
Inheritance: objectRadItemsControlImpl
Implements:
Constructors
Initializes a new instance of the RadItemsControlImpl class.
public RadItemsControlImpl(RadItemOwnerCollection items)
The collection of items to manage.
Properties
Gets the collection of active items. This is an alias for the Items property.
public RadItemOwnerCollection ActiveItems { get; }
The collection of active RadItem objects.
Implements:
Gets the collection of items managed by this control implementation.
public RadItemOwnerCollection Items { get; }
The RadItemOwnerCollection containing all managed items.
Implements:
Gets or sets a value indicating whether the control should process keyboard input.
public bool ProcessKeyboard { get; set; }
true if keyboard processing is enabled; otherwise, false.
The default value is false.
Implements:
Gets or sets a value indicating whether item selection should roll over from the last item to the first item (and vice versa) during navigation.
public bool RollOverItemSelection { get; set; }
true if rollover selection is enabled; otherwise, false.
The default value is false.
Implements:
Methods
Gets the next selectable item in the collection relative to the specified item.
public RadItem GetNextItem(RadItem item, bool forward)
The reference item to navigate from, or null to get the first item.
forwardboolTrue to navigate forward, false to navigate backward.
Returns:The next selectable item, or null if no suitable item is found.
Implements:
If RollOverItemSelection is enabled, navigation will wrap around to the beginning/end when reaching the last/first item respectively.
Selects the specified item and raises appropriate selection events.
public void SelectItem(RadItem item)
The item to select.
Implements:
If a different item was previously selected, the ItemDeselected event is raised for the old item before selecting the new item and raising the ItemSelected event.
Selects the next item in the specified direction relative to the current item.
Events
Occurs when an item is deselected.
public event ItemSelectedEventHandler ItemDeselected
Implements:
Occurs when an item is selected.
public event ItemSelectedEventHandler ItemSelected
Implements: