Class
RadListControl

Represents a list control that displays data in a list layout similar to the standard ListBox control, providing advanced features such as data binding, virtualization, and custom item rendering.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Data Controls")]
[ComplexBindingProperties("DataSource", "ValueMember")]
[LookupBindingProperties("DataSource", "DisplayMember", "ValueMember", "SelectedValue")]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class RadListControl : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, ISupportRootUIAutomation

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadListControl

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISupportRootUIAutomationISynchronizeInvokeIWin32Window

Inherited Members RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetBackColorThemeOverrides()RadControl.ResetBackColorThemeOverrides()RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnLostFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnParentChanged(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.OnInvalidated(RadElement)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.ProcessAutoSizeChanged(bool)RadControl.GetInputElement()RadControl.BeginInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.TextRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.AutoSizeRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessCmdKey(ref Message, Keys)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadListControl()

Initializes a new instance of the RadListControl class with default settings.

Declaration

cs-api-definition
public RadListControl()

Fields

CreatingVisualListItemEventKey

Declaration

cs-api-definition
public static readonly object CreatingVisualListItemEventKey

Field Value

object

ListItemDataBindingEventKey

Declaration

cs-api-definition
public static readonly object ListItemDataBindingEventKey

Field Value

object

ListItemDataBoundEventKey

Declaration

cs-api-definition
public static readonly object ListItemDataBoundEventKey

Field Value

object

SelectedIndexChangedEventKey

Declaration

cs-api-definition
public static readonly object SelectedIndexChangedEventKey

Field Value

object

SelectedIndexChangingEventKey

Declaration

cs-api-definition
public static readonly object SelectedIndexChangingEventKey

Field Value

object

SelectedValueChangedEventKey

Declaration

cs-api-definition
public static readonly object SelectedValueChangedEventKey

Field Value

object

SortStyleChangedEventKey

Declaration

cs-api-definition
public static readonly object SortStyleChangedEventKey

Field Value

object

VisualItemFormattingEventKey

Declaration

cs-api-definition
public static readonly object VisualItemFormattingEventKey

Field Value

object

Properties

ActiveItem

Gets or sets the active item that receives focus for keyboard navigation in multi-selection modes.

Declaration

cs-api-definition
[Browsable(false)]
public RadListDataItem ActiveItem { get; set; }

Property Value

RadListDataItem

AllowDragDrop

Gets or sets a value indicating whether users can reorder items using drag and drop operations.

Declaration

cs-api-definition
[Browsable(true)]
public bool AllowDragDrop { get; set; }

Property Value

bool

AutoSizeItems

Gets or sets a value that indicates whether items will be sized according to their content. If this property is true the user can set the Height property of each individual RadListDataItem in the Items collection in order to override the automatic sizing.

Declaration

cs-api-definition
[Browsable(true)]
public bool AutoSizeItems { get; set; }

Property Value

bool

CaseSensitiveSort

Gets or sets a value indicating whether text case sensitivity is considered during sorting operations.

Declaration

cs-api-definition
[Browsable(true)]
public bool CaseSensitiveSort { get; set; }

Property Value

bool

DataMember

Gets or sets the name of the data member to bind to when the DataSource contains multiple tables or lists.

Declaration

cs-api-definition
[Browsable(true)]
public string DataMember { get; set; }

Property Value

string

DataSource

Gets or sets the data source that provides the items to be displayed in the RadListControl.

Declaration

cs-api-definition
[Browsable(true)]
public object DataSource { get; set; }

Property Value

object

DefaultSize

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

Overrides Control.DefaultSize

DescriptionTextMember

Gets or sets the property name used to extract description text from data items for additional item information display.

Declaration

cs-api-definition
[Browsable(true)]
public string DescriptionTextMember { get; set; }

Property Value

string

DisplayMember

Gets or sets the property name used to extract display text from data items for visual representation in the list.

Declaration

cs-api-definition
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[Browsable(true)]
public string DisplayMember { get; set; }

Property Value

string

EnableAlternatingItemColor

Gets or sets a value indicating whether alternating background colors are applied to list items for improved readability.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool EnableAlternatingItemColor { get; set; }

Property Value

bool

EnableKineticScrolling

Gets or sets a value indicating whether kinetic scrolling is enabled for smooth touch-based scrolling interactions.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableKineticScrolling { get; set; }

Property Value

bool

EnableUIAutomation

Gets or sets a value indicating whether the UI Automation functionality is enabled.

Declaration

cs-api-definition
public override bool EnableUIAutomation { get; set; }

Property Value

bool

Overrides RadControl.EnableUIAutomation

Implements ISupportRootUIAutomation.EnableUIAutomation

Filter

Gets or sets a predicate which filters which items can be visible.

Declaration

cs-api-definition
[Browsable(false)]
public Predicate<RadListDataItem> Filter { get; set; }

Property Value

Predicate<RadListDataItem>

FilterExpression

Gets or sets a filter expression string that determines which items are visible in the list based on the specified criteria.

Declaration

cs-api-definition
[Browsable(true)]
public string FilterExpression { get; set; }

Property Value

string

FindStringComparer

Gets or sets an implementation of IFindStringComparer used for customizing string comparison behavior in the FindString method.

Declaration

cs-api-definition
[Browsable(false)]
public IFindStringComparer FindStringComparer { get; set; }

Property Value

IFindStringComparer

FitItemsToSize

Gets or sets a value indicating whether items are automatically resized to fit the control's width.

Declaration

cs-api-definition
public bool FitItemsToSize { get; set; }

Property Value

bool

FormatString

Gets or sets a format string which will be used for visual formatting of the items text.

Declaration

cs-api-definition
[Browsable(true)]
public string FormatString { get; set; }

Property Value

string

FormattingEnabled

Gets or sets a value that indicates whether the FormatString and FormatInfo properties will be used to format the items text. Setting this property to false may improve performance.

Declaration

cs-api-definition
[Browsable(true)]
public bool FormattingEnabled { get; set; }

Property Value

bool

IsFilterActive

Gets a value indicating whether any filtering is currently active, either through a Filter delegate or FilterExpression.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsFilterActive { get; }

Property Value

bool

ItemHeight

Gets or sets the height of individual list items in pixels.

Declaration

cs-api-definition
[Browsable(true)]
public int ItemHeight { get; set; }

Property Value

int

ItemTextComparisonMode

Gets or sets the text comparison mode that determines whether the FindString method searches using user-specified text or data-bound text from the DisplayMember.

Declaration

cs-api-definition
[Browsable(false)]
public ItemTextComparisonMode ItemTextComparisonMode { get; set; }

Property Value

ItemTextComparisonMode

Items

Gets the collection of data items contained in the RadListControl. Items cannot be modified in data bound mode.

Declaration

cs-api-definition
[Browsable(true)]
public RadListDataItemCollection Items { get; }

Property Value

RadListDataItemCollection

KeyboardSearchEnabled

Gets or sets a value indicating whether users can search for items by typing characters while the RadListControl has focus.

Declaration

cs-api-definition
[Browsable(true)]
public bool KeyboardSearchEnabled { get; set; }

Property Value

bool

KeyboardSearchResetInterval

Gets or sets the time interval in milliseconds that the user must wait before the keyboard search functionality is reset.

Declaration

cs-api-definition
[Browsable(true)]
public int KeyboardSearchResetInterval { get; set; }

Property Value

int

ListElement

Gets the main element that provides the list functionality and serves as the core component of the RadListControl.

Declaration

cs-api-definition
[Browsable(false)]
public RadListElement ListElement { get; set; }

Property Value

RadListElement

ScrollMode

Gets or set the scroll mode.

Declaration

cs-api-definition
[Browsable(true)]
public ItemScrollerScrollModes ScrollMode { get; set; }

Property Value

ItemScrollerScrollModes

SelectedIndex

Gets or sets the currently selected index.

Declaration

cs-api-definition
[Browsable(false)]
public int SelectedIndex { get; set; }

Property Value

int

SelectedItem

Gets or sets the currently selected item.

Declaration

cs-api-definition
[Browsable(false)]
[Bindable(true)]
public RadListDataItem SelectedItem { get; set; }

Property Value

RadListDataItem

SelectedItems

Gets a read-only collection of the currently selected items in the RadListControl.

Declaration

cs-api-definition
[Browsable(false)]
public IReadOnlyCollection<RadListDataItem> SelectedItems { get; }

Property Value

IReadOnlyCollection<RadListDataItem>

SelectedValue

Gets or sets the value of the currently selected item based on the ValueMember property.

Declaration

cs-api-definition
[Browsable(false)]
[Bindable(true)]
public object SelectedValue { get; set; }

Property Value

object

SelectionMode

Gets or sets the selection mode that determines how items can be selected in the RadListControl.

Declaration

cs-api-definition
[Browsable(true)]
public SelectionMode SelectionMode { get; set; }

Property Value

SelectionMode

SortStyle

Gets or sets the sorting behavior applied to the list items.

Declaration

cs-api-definition
[Browsable(true)]
public SortStyle SortStyle { get; set; }

Property Value

SortStyle

SuspendItemsChangeEvents

Gets or sets a value indicating whether the ItemsChanging and ItemsChanged events are temporarily suspended from firing.

Declaration

cs-api-definition
[Browsable(false)]
public bool SuspendItemsChangeEvents { get; set; }

Property Value

bool

SuspendSelectionEvents

Gets or sets a value that determines whether to stop the selection events from firing. These are SelectedIndexChanged, SelectedIndexChanging and SelectedValueChanged.

Declaration

cs-api-definition
[Browsable(false)]
public bool SuspendSelectionEvents { get; set; }

Property Value

bool

ValueMember

Gets or sets the property name used to extract values from data items, which will be accessible through the Value property of each RadListDataItem.

Declaration

cs-api-definition
[Browsable(true)]
public string ValueMember { get; set; }

Property Value

string

Methods

BeginUpdate()

Suspends internal notifications and processing to improve performance during bulk operations. This method is cumulative, requiring matching calls to EndUpdate().

Declaration

cs-api-definition
public void BeginUpdate()

CanEditElementAtDesignTime(RadElement)

Determines whether an element may be edited via the EditUIElements dialog at design-time.

Declaration

cs-api-definition
protected override bool CanEditElementAtDesignTime(RadElement element)

Parameters

element

RadElement

Returns

bool

Overrides RadControl.CanEditElementAtDesignTime(RadElement)

ClearMeasuredSize()

Declaration

cs-api-definition
protected virtual void ClearMeasuredSize()

CreateAccessibilityInstance()

Declaration

cs-api-definition
protected override AccessibleObject CreateAccessibilityInstance()

Returns

AccessibleObject

Overrides Control.CreateAccessibilityInstance()

CreateChildItems(RadElement)

Creates the child elements for the RadListControl.

Declaration

cs-api-definition
protected override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element that will contain the child elements.

Overrides RadControl.CreateChildItems(RadElement)

CreateListElement()

Creates and returns a new instance of the RadListElement that provides the core list functionality.

Declaration

cs-api-definition
protected virtual RadListElement CreateListElement()

Returns

RadListElement

A new RadListElement instance.

DeferRefresh()

Creates a disposable object that defers refresh operations until disposed, allowing multiple changes to be batched together.

Declaration

cs-api-definition
public virtual IDisposable DeferRefresh()

Returns

IDisposable

An IDisposable object that resumes refresh operations when disposed.

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides RadControl.Dispose(bool)

EndInit()

Resumes layout.

Declaration

cs-api-definition
public override void EndInit()

Overrides RadControl.EndInit()

EndUpdate()

Resumes internal notifications and processing previously suspended by BeginUpdate().

Declaration

cs-api-definition
public void EndUpdate()

FindItemExact(string, bool)

Declaration

cs-api-definition
public RadListDataItem FindItemExact(string text, bool caseSensitive)

Parameters

text

string

caseSensitive

bool

Returns

RadListDataItem

FindString(string)

Searches for an item that matches the specified string using the configured FindStringComparer, starting from the beginning of the list.

Declaration

cs-api-definition
public int FindString(string s)

Parameters

s

string

The string to search for.

Returns

int

The index of the first matching item, or -1 if no match is found.

FindString(string, int)

Searches for an item that matches the specified string using the configured FindStringComparer, starting from the specified index.

Declaration

cs-api-definition
public int FindString(string s, int startIndex)

Parameters

s

string

The string to search for.

startIndex

int

The index to start searching from.

Returns

int

The index of the first matching item, or -1 if no match is found.

FindStringExact(string)

Searches for an item with text that exactly matches the specified string, starting from the beginning of the list.

Declaration

cs-api-definition
public int FindStringExact(string s)

Parameters

s

string

The string to match exactly.

Returns

int

The index of the matching item, or -1 if no exact match is found.

FindStringExact(string, int)

Searches for an item with text that exactly matches the specified string, starting from the specified index.

Declaration

cs-api-definition
public int FindStringExact(string s, int startIndex)

Parameters

s

string

The string to match exactly.

startIndex

int

The index to start searching from.

Returns

int

The index of the matching item, or -1 if no exact match is found.

FindStringNonWrapping(string)

Searches for an item in the same manner as FindString() but does not start from the beginning when the end of the Items collection is reached.

Declaration

cs-api-definition
public int FindStringNonWrapping(string s)

Parameters

s

string

The string that will be used to search for an item.

Returns

int

The index of the found item or -1 if no item is found.

FindStringNonWrapping(string, int)

Searches for an item in the same manner as FindString() but does not start from the beginning when the end of the Items collection is reached.

Declaration

cs-api-definition
public int FindStringNonWrapping(string s, int startIndex)

Parameters

s

string

The string that will be used to search for an item.

startIndex

int

The index from which to start searching.

Returns

int

The index of the found item or -1 if no item is found.

HandleEndKey()

Declaration

cs-api-definition
protected virtual void HandleEndKey()

HandleHomeKey()

Declaration

cs-api-definition
protected virtual void HandleHomeKey()

HandlePageDownKey()

Declaration

cs-api-definition
protected virtual void HandlePageDownKey()

HandlePageUpKey()

Declaration

cs-api-definition
protected virtual void HandlePageUpKey()

IsInputChar(char)

Declaration

cs-api-definition
protected override bool IsInputChar(char charCode)

Parameters

charCode

char

Returns

bool

Overrides Control.IsInputChar(char)

IsInputKey(Keys)

Declaration

cs-api-definition
protected override bool IsInputKey(Keys keyData)

Parameters

keyData

Keys

Returns

bool

Overrides RadControl.IsInputKey(Keys)

OnCreatingVisualItem(object, CreatingVisualListItemEventArgs)

Declaration

cs-api-definition
protected virtual void OnCreatingVisualItem(object sender, CreatingVisualListItemEventArgs args)

Parameters

sender

object

args

CreatingVisualListItemEventArgs

OnDataBindingComplete(object, ListBindingCompleteEventArgs)

Raises the DataBindingComplete event.

Declaration

cs-api-definition
protected virtual void OnDataBindingComplete(object sender, ListBindingCompleteEventArgs e)

Parameters

sender

object

e

ListBindingCompleteEventArgs

An ListBindingCompleteEventArgs instance that contains the event data.

OnEnabledChanged(EventArgs)

Declaration

cs-api-definition
protected override void OnEnabledChanged(EventArgs e)

Parameters

e

EventArgs

Overrides RadControl.OnEnabledChanged(EventArgs)

OnGotFocus(EventArgs)

Declaration

cs-api-definition
protected override void OnGotFocus(EventArgs e)

Parameters

e

EventArgs

Overrides RadControl.OnGotFocus(EventArgs)

OnItemDataBinding(object, ListItemDataBindingEventArgs)

Declaration

cs-api-definition
protected virtual void OnItemDataBinding(object sender, ListItemDataBindingEventArgs args)

Parameters

sender

object

args

ListItemDataBindingEventArgs

OnItemDataBound(object, ListItemDataBoundEventArgs)

Declaration

cs-api-definition
protected virtual void OnItemDataBound(object sender, ListItemDataBoundEventArgs args)

Parameters

sender

object

args

ListItemDataBoundEventArgs

OnKeyDown(KeyEventArgs)

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

Overrides RadControl.OnKeyDown(KeyEventArgs)

OnLoad(Size)

Notifies that the control is about to be visualized.

Declaration

cs-api-definition
protected override void OnLoad(Size desiredSize)

Parameters

desiredSize

Size

Overrides RadControl.OnLoad(Size)

OnMouseDown(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseDown(MouseEventArgs)

OnMouseMove(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseUp(MouseEventArgs)

OnMouseWheel(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseWheel(MouseEventArgs)

OnSelectedIndexChanged(object, int)

Declaration

cs-api-definition
protected virtual void OnSelectedIndexChanged(object sender, int newIndex)

Parameters

sender

object

newIndex

int

OnSelectedIndexChanging(object, int)

Declaration

cs-api-definition
protected virtual bool OnSelectedIndexChanging(object sender, int newIndex)

Parameters

sender

object

newIndex

int

Returns

bool

OnSelectedValueChanged(object, int, object, object)

Declaration

cs-api-definition
protected virtual void OnSelectedValueChanged(object sender, int newIndex, object newValue, object oldValue)

Parameters

sender

object

newIndex

int

newValue

object

oldValue

object

OnSortStyleChanged(object, SortStyleChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnSortStyleChanged(object sender, SortStyleChangedEventArgs args)

Parameters

sender

object

args

SortStyleChangedEventArgs

OnVisualItemFormatting(object, VisualItemFormattingEventArgs)

Declaration

cs-api-definition
protected virtual void OnVisualItemFormatting(object sender, VisualItemFormattingEventArgs args)

Parameters

sender

object

args

VisualItemFormattingEventArgs

ProcessCodedUIMessage(ref IPCMessage)

Declaration

cs-api-definition
protected override void ProcessCodedUIMessage(ref IPCMessage request)

Parameters

request

IPCMessage

Overrides RadControl.ProcessCodedUIMessage(ref IPCMessage)

Rebind()

Forces re-evaluation of the current data source (if any).

Declaration

cs-api-definition
public void Rebind()

ScrollByPage(int)

Scrolls the view by the specified number of pages.

Declaration

cs-api-definition
public void ScrollByPage(int pageCount)

Parameters

pageCount

int

The number of pages to scroll. Positive values scroll down, negative values scroll up.

ScrollToItem(RadListDataItem)

Scrolls the view to make the specified item visible, positioning it appropriately within the visible area.

Declaration

cs-api-definition
public void ScrollToItem(RadListDataItem item)

Parameters

item

RadListDataItem

The RadListDataItem to scroll to.

SelectAll()

Selects all items in the list if the current SelectionMode allows multiple selection.

Declaration

cs-api-definition
public void SelectAll()

Exceptions

InvalidOperationException

Thrown when SelectionMode is One or None.

SelectRange(int, int)

Clears current selection and selects all items within the specified index range.

Declaration

cs-api-definition
public void SelectRange(int startIndex, int endIndex)

Parameters

startIndex

int

The starting index of the range to select.

endIndex

int

The ending index of the range to select (inclusive).

UnwireEvents()

Unsubscribes from the relevant events of the underlying RadListElement.

Declaration

cs-api-definition
protected virtual void UnwireEvents()

WireEvents()

Subscribes to the relevant events of the underlying RadListElement.

Declaration

cs-api-definition
protected virtual void WireEvents()

WndProc(ref Message)

Declaration

cs-api-definition
protected override void WndProc(ref Message m)

Parameters

m

Message

Overrides RadControl.WndProc(ref Message)

Events

CreatingVisualListItem

Occurs when custom visual items need to be created, allowing users to provide custom visual representations for list items.

Declaration

cs-api-definition
public event CreatingVisualListItemEventHandler CreatingVisualListItem

Event Value

CreatingVisualListItemEventHandler

DataBindingComplete

Fires after data binding operation has finished.

Declaration

cs-api-definition
[Browsable(true)]
public event ListBindingCompleteEventHandler DataBindingComplete

Event Value

ListBindingCompleteEventHandler

ItemDataBinding

Occurs before a RadListDataItem is data bound, allowing customization of the data binding process and providing custom item instances.

Declaration

cs-api-definition
public event ListItemDataBindingEventHandler ItemDataBinding

Event Value

ListItemDataBindingEventHandler

ItemDataBound

Occurs after a RadListDataItem has been data bound, providing an opportunity to modify the bound item.

Declaration

cs-api-definition
public event ListItemDataBoundEventHandler ItemDataBound

Event Value

ListItemDataBoundEventHandler

SelectedIndexChanged

This event fires when the selected index property changes.

Declaration

cs-api-definition
public event PositionChangedEventHandler SelectedIndexChanged

Event Value

PositionChangedEventHandler

SelectedIndexChanging

This event fires before SelectedIndex changes. This event allows the operation to be cancelled.

Declaration

cs-api-definition
public event PositionChangingEventHandler SelectedIndexChanging

Event Value

PositionChangingEventHandler

SelectedItemsChanged

Occurs when the SelectedItems collection changes due to selection modifications.

Declaration

cs-api-definition
public event NotifyCollectionChangedEventHandler SelectedItemsChanged

Event Value

NotifyCollectionChangedEventHandler

SelectedItemsChanging

This event fires before the SelectedItems collection changes.

Declaration

cs-api-definition
public event NotifyCollectionChangingEventHandler SelectedItemsChanging

Event Value

NotifyCollectionChangingEventHandler

SelectedValueChanged

This event fires only if the SelectedValue has really changed. For example it will not fire if the previously selected item has the same value as the newly selected item.

Declaration

cs-api-definition
public event EventHandler SelectedValueChanged

Event Value

EventHandler

SortStyleChanged

Occurs when the SortStyle property value changes.

Declaration

cs-api-definition
public event SortStyleChangedEventHandler SortStyleChanged

Event Value

SortStyleChangedEventHandler

VisualItemFormatting

Occurs when visual item formatting is needed, allowing customization of the appearance of visible list items.

Declaration

cs-api-definition
public event VisualListItemFormattingEventHandler VisualItemFormatting

Event Value

VisualListItemFormattingEventHandler

In this article
DefinitionConstructorsRadListControl()FieldsCreatingVisualListItemEventKeyListItemDataBindingEventKeyListItemDataBoundEventKeySelectedIndexChangedEventKeySelectedIndexChangingEventKeySelectedValueChangedEventKeySortStyleChangedEventKeyVisualItemFormattingEventKeyPropertiesActiveItemAllowDragDropAutoSizeItemsCaseSensitiveSortDataMemberDataSourceDefaultSizeDescriptionTextMemberDisplayMemberEnableAlternatingItemColorEnableKineticScrollingEnableUIAutomationFilterFilterExpressionFindStringComparerFitItemsToSizeFormatStringFormattingEnabledIsFilterActiveItemHeightItemTextComparisonModeItemsKeyboardSearchEnabledKeyboardSearchResetIntervalListElementScrollModeSelectedIndexSelectedItemSelectedItemsSelectedValueSelectionModeSortStyleSuspendItemsChangeEventsSuspendSelectionEventsValueMemberMethodsBeginUpdate()CanEditElementAtDesignTime(RadElement)ClearMeasuredSize()CreateAccessibilityInstance()CreateChildItems(RadElement)CreateListElement()DeferRefresh()Dispose(bool)EndInit()EndUpdate()FindItemExact(string, bool)FindString(string)FindString(string, int)FindStringExact(string)FindStringExact(string, int)FindStringNonWrapping(string)FindStringNonWrapping(string, int)HandleEndKey()HandleHomeKey()HandlePageDownKey()HandlePageUpKey()IsInputChar(char)IsInputKey(Keys)OnCreatingVisualItem(object, CreatingVisualListItemEventArgs)OnDataBindingComplete(object, ListBindingCompleteEventArgs)OnEnabledChanged(EventArgs)OnGotFocus(EventArgs)OnItemDataBinding(object, ListItemDataBindingEventArgs)OnItemDataBound(object, ListItemDataBoundEventArgs)OnKeyDown(KeyEventArgs)OnLoad(Size)OnMouseDown(MouseEventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseWheel(MouseEventArgs)OnSelectedIndexChanged(object, int)OnSelectedIndexChanging(object, int)OnSelectedValueChanged(object, int, object, object)OnSortStyleChanged(object, SortStyleChangedEventArgs)OnVisualItemFormatting(object, VisualItemFormattingEventArgs)ProcessCodedUIMessage(ref IPCMessage)Rebind()ScrollByPage(int)ScrollToItem(RadListDataItem)SelectAll()SelectRange(int, int)UnwireEvents()WireEvents()WndProc(ref Message)EventsCreatingVisualListItemDataBindingCompleteItemDataBindingItemDataBoundSelectedIndexChangedSelectedIndexChangingSelectedItemsChangedSelectedItemsChangingSelectedValueChangedSortStyleChangedVisualItemFormatting
Not finding the help you need?
Contact Support