skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class 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.

Inheritance
System.Object
RadItemsControlImpl
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public class RadItemsControlImpl : IItemsControl
Remarks

This implementation handles item selection logic, keyboard navigation, and selection events for controls that work with RadItem collections. It supports rollover selection for circular navigation and provides methods for finding and selecting items based on visibility and selectability.

Constructors

RadItemsControlImpl(RadItemOwnerCollection)

Initializes a new instance of the RadItemsControlImpl class.

Declaration
public RadItemsControlImpl(RadItemOwnerCollection items)
Parameters
RadItemOwnerCollection items

The collection of items to manage.

Properties

ActiveItems

Gets the collection of active items. This is an alias for the Items property.

Declaration
public RadItemOwnerCollection ActiveItems { get; }
Property Value
RadItemOwnerCollection

The collection of active RadItem objects.

Implements
IItemsControl.ActiveItems

Items

Gets the collection of items managed by this control implementation.

Declaration
public RadItemOwnerCollection Items { get; }
Property Value
RadItemOwnerCollection

The RadItemOwnerCollection containing all managed items.

Implements
IItemsControl.Items

ProcessKeyboard

Gets or sets a value indicating whether the control should process keyboard input.

Declaration
public bool ProcessKeyboard { get; set; }
Property Value
System.Boolean

true if keyboard processing is enabled; otherwise, false. The default value is false.

Implements
IItemsControl.ProcessKeyboard

RollOverItemSelection

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.

Declaration
public bool RollOverItemSelection { get; set; }
Property Value
System.Boolean

true if rollover selection is enabled; otherwise, false. The default value is false.

Implements
IItemsControl.RollOverItemSelection

Methods

CanNavigate(Keys)

Determines whether the control can navigate using the specified key.

Declaration
public bool CanNavigate(Keys keyData)
Parameters
System.Windows.Forms.Keys keyData

The key to check for navigation capability.

Returns
System.Boolean

Always returns false in the current implementation.

Implements
IItemsControl.CanNavigate(Keys)

CanProcessMnemonic(Char)

Determines whether the control can process the specified mnemonic character.

Declaration
public bool CanProcessMnemonic(char keyData)
Parameters
System.Char keyData

The mnemonic character to check.

Returns
System.Boolean

Always returns false in the current implementation.

Implements
IItemsControl.CanProcessMnemonic(Char)

GetFirstVisibleItem()

Gets the first visible and selectable item in the collection.

Declaration
public RadItem GetFirstVisibleItem()
Returns
RadItem

The first visible and selectable RadItem, or null if none exists.

Implements
IItemsControl.GetFirstVisibleItem()

GetLastVisibleItem()

Gets the last visible and selectable item in the collection.

Declaration
public RadItem GetLastVisibleItem()
Returns
RadItem

The last visible and selectable RadItem, or null if none exists.

Implements
IItemsControl.GetLastVisibleItem()

GetNextItem(RadItem, Boolean)

Gets the next selectable item in the collection relative to the specified item.

Declaration
public RadItem GetNextItem(RadItem item, bool forward)
Parameters
RadItem item

The reference item to navigate from, or null to get the first item.

System.Boolean forward

True to navigate forward, false to navigate backward.

Returns
RadItem

The next selectable item, or null if no suitable item is found.

Implements
IItemsControl.GetNextItem(RadItem, Boolean)
Remarks

If RollOverItemSelection is enabled, navigation will wrap around to the beginning/end when reaching the last/first item respectively.

GetSelectedItem()

Gets the currently selected item.

Declaration
public RadItem GetSelectedItem()
Returns
RadItem

The currently selected RadItem, or null if no item is selected.

Implements
IItemsControl.GetSelectedItem()

SelectFirstVisibleItem()

Selects the first visible and selectable item in the collection.

Declaration
public RadItem SelectFirstVisibleItem()
Returns
RadItem

The selected RadItem, or null if no suitable item exists.

Implements
IItemsControl.SelectFirstVisibleItem()

SelectItem(RadItem)

Selects the specified item and raises appropriate selection events.

Declaration
public void SelectItem(RadItem item)
Parameters
RadItem item

The item to select.

Implements
IItemsControl.SelectItem(RadItem)
Remarks

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.

SelectLastVisibleItem()

Selects the last visible and selectable item in the collection.

Declaration
public RadItem SelectLastVisibleItem()
Returns
RadItem

The selected RadItem, or null if no suitable item exists.

Implements
IItemsControl.SelectLastVisibleItem()

SelectNextItem(RadItem, Boolean)

Selects the next item in the specified direction relative to the current item.

Declaration
public RadItem SelectNextItem(RadItem item, bool forward)
Parameters
RadItem item

The current item to navigate from.

System.Boolean forward

True to select the next item, false to select the previous item.

Returns
RadItem

The newly selected item, or null if no suitable item was found.

Implements
IItemsControl.SelectNextItem(RadItem, Boolean)

Events

ItemDeselected

Occurs when an item is deselected.

Declaration
public event ItemSelectedEventHandler ItemDeselected
Event Type
ItemSelectedEventHandler

Implements
IItemsControl.ItemDeselected

ItemSelected

Occurs when an item is selected.

Declaration
public event ItemSelectedEventHandler ItemSelected
Event Type
ItemSelectedEventHandler

Implements
IItemsControl.ItemSelected

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.