Class
RadListViewElement

Represents the main element of RadListView.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class RadListViewElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IDataItemSource

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadListViewElement

Derived Classes: RadCardViewElement

Implements: IBindableComponentIBorderElementIBoxElementIBoxStyleIComponentICustomTypeDescriptorIDataItemSourceIDisposableIDrawFillElementIFillElementIImageElementINotifyPropertyChangedIPrimitiveElementIShapedElementIShortcutProviderIStylableElementIStylableNodeISupportDragISupportDropISupportSystemSkinITextPrimitiveITextProvider

Inherited Members LightVisualElement.BackgroundImagePropertyLightVisualElement.BackgroundImageLayoutPropertyLightVisualElement.BackColor2PropertyLightVisualElement.BackColor3PropertyLightVisualElement.BackColor4PropertyLightVisualElement.BorderBottomColorPropertyLightVisualElement.BorderBottomShadowColorPropertyLightVisualElement.BorderBottomWidthPropertyLightVisualElement.BorderBoxStylePropertyLightVisualElement.BorderColorPropertyLightVisualElement.BorderColor2PropertyLightVisualElement.BorderColor3PropertyLightVisualElement.BorderColor4PropertyLightVisualElement.BorderDashStylePropertyLightVisualElement.BorderDashPatternPropertyLightVisualElement.BorderDrawModePropertyLightVisualElement.BorderGradientAnglePropertyLightVisualElement.BorderGradientStylePropertyLightVisualElement.BorderInnerColorPropertyLightVisualElement.BorderInnerColor2PropertyLightVisualElement.BorderInnerColor3PropertyLightVisualElement.BorderInnerColor4PropertyLightVisualElement.BorderLeftColorPropertyLightVisualElement.BorderLeftShadowColorPropertyLightVisualElement.BorderLeftWidthPropertyLightVisualElement.BorderRightColorPropertyLightVisualElement.BorderRightShadowColorPropertyLightVisualElement.BorderRightWidthPropertyLightVisualElement.BorderTopColorPropertyLightVisualElement.BorderTopShadowColorPropertyLightVisualElement.BorderTopWidthPropertyLightVisualElement.BorderWidthPropertyLightVisualElement.ClipTextPropertyLightVisualElement.DisabledTextRenderingHintPropertyLightVisualElement.DrawBorderPropertyLightVisualElement.DrawFillPropertyLightVisualElement.DrawTextPropertyLightVisualElement.DrawBackgroundImagePropertyLightVisualElement.DrawImagePropertyLightVisualElement.EnableImageTransparencyPropertyLightVisualElement.GradientAnglePropertyLightVisualElement.GradientPercentagePropertyLightVisualElement.GradientPercentage2PropertyLightVisualElement.GradientStylePropertyLightVisualElement.HorizontalLineColorPropertyLightVisualElement.HorizontalLineWidthPropertyLightVisualElement.ImageAlignmentPropertyLightVisualElement.ImageIndexPropertyLightVisualElement.ImageKeyPropertyLightVisualElement.ImageLayoutPropertyLightVisualElement.ImageOpacityPropertyLightVisualElement.ImagePropertyLightVisualElement.ImageTransparentColorPropertyLightVisualElement.NumberOfColorsPropertyLightVisualElement.ShowHorizontalLinePropertyLightVisualElement.SvgImagePropertyLightVisualElement.TextAlignmentPropertyLightVisualElement.TextImageRelationPropertyLightVisualElement.TextWrapPropertyLightVisualElement.TextRenderingHintPropertyLightVisualElement.GetBorderThickness(LightVisualElement, bool)LightVisualElement.InitializeFields()LightVisualElement.ShouldSerializeProperty(PropertyDescriptor)LightVisualElement.GetImageDrawTypeLocalValue()LightVisualElement.MapStyleProperty(RadProperty, string)LightVisualElement.GetStylablePropertiesFilter()LightVisualElement.GetPaintingBorderWidth()LightVisualElement.OnBitStateChanged(long, bool, bool)LightVisualElement.GetAsBitmapEx(Color, float, SizeF)LightVisualElement.GetClipRect()LightVisualElement.PaintElement(IGraphics, float, SizeF)LightVisualElement.PaintText(IGraphics)LightVisualElement.PaintTextCore(IGraphics)LightVisualElement.DrawHorizontalLineWithoutText(IGraphics)LightVisualElement.DrawHorizontalLine(IGraphics)LightVisualElement.PaintImage(IGraphics)LightVisualElement.PaintSvgImage(IGraphics)LightVisualElement.PaintBackgroundImage(IGraphics)LightVisualElement.PaintContent(IGraphics)LightVisualElement.AnimateImage(Image, bool)LightVisualElement.ClipImage(Image, Rectangle, Size)LightVisualElement.CalculateDesiredSize(SizeF, SizeF, SizeF)LightVisualElement.MeasureElements(SizeF, SizeF, Padding)LightVisualElement.ArrangeOverride(SizeF)LightVisualElement.ArrangeElement(RadElement, SizeF)LightVisualElement.GetClientOffset(bool)LightVisualElement.GetBorderThickness(bool)LightVisualElement.GetClientRectangle(bool, SizeF)LightVisualElement.GetClientRectangle(SizeF)LightVisualElement.GetTextAlignment(ContentAlignment)LightVisualElement.GetTextAlignment()LightVisualElement.OnLoaded()LightVisualElement.OnPropertyChanged(RadPropertyChangedEventArgs)LightVisualElement.OnTunnelEvent(RadElement, RoutedEventArgs)LightVisualElement.ToggleTextPrimitive(RadProperty)LightVisualElement.OnAnimatedImageFrameChanged()LightVisualElement.OnMouseMove(MouseEventArgs)LightVisualElement.GetFaceRectangle()LightVisualElement.CreateTextParams()LightVisualElement.PaintPrimitive(IGraphics, float, SizeF, TextParams)LightVisualElement.PaintPrimitive(IGraphics, TextParams)LightVisualElement.MeasureOverride(SizeF, TextParams)LightVisualElement.OnMouseMove(object, MouseEventArgs)LightVisualElement.GetTextSize(SizeF, TextParams)LightVisualElement.GetTextSize(TextParams)LightVisualElement.TextRenderingHintLightVisualElement.DisabledTextRenderingHintLightVisualElement.ShouldPaintLightVisualElement.CanFocusLightVisualElement.DrawTextLightVisualElement.DrawFillLightVisualElement.DrawBorderLightVisualElement.DrawBackgroundImageLightVisualElement.DrawImageLightVisualElement.BorderBoxStyleLightVisualElement.BorderDrawModeLightVisualElement.BorderWidthLightVisualElement.BorderLeftWidthLightVisualElement.BorderTopWidthLightVisualElement.BorderRightWidthLightVisualElement.BorderBottomWidthLightVisualElement.BorderGradientAngleLightVisualElement.BorderGradientStyleLightVisualElement.BorderColorLightVisualElement.BorderColor2LightVisualElement.BorderColor3LightVisualElement.BorderColor4LightVisualElement.BorderInnerColorLightVisualElement.BorderInnerColor2LightVisualElement.BorderInnerColor3LightVisualElement.BorderInnerColor4LightVisualElement.BackColor2LightVisualElement.BackColor3LightVisualElement.BackColor4LightVisualElement.NumberOfColorsLightVisualElement.GradientStyleLightVisualElement.GradientAngleLightVisualElement.GradientPercentageLightVisualElement.GradientPercentage2LightVisualElement.BackgroundImageLightVisualElement.ImageLightVisualElement.ImageIndexLightVisualElement.ImageKeyLightVisualElement.ImageLayoutLightVisualElement.BackgroundImageLayoutLightVisualElement.ImageOpacityLightVisualElement.DisabledImageOpacityLightVisualElement.TextAlignmentLightVisualElement.ImageAlignmentLightVisualElement.TextImageRelationLightVisualElement.ShowHorizontalLineLightVisualElement.HorizontalLineColorLightVisualElement.HorizontalLineWidthLightVisualElement.DisableHTMLRenderingLightVisualElement.BorderLeftColorLightVisualElement.BorderTopColorLightVisualElement.BorderRightColorLightVisualElement.BorderBottomColorLightVisualElement.BorderLeftShadowColorLightVisualElement.BorderTopShadowColorLightVisualElement.BorderRightShadowColorLightVisualElement.BorderBottomShadowColorLightVisualElement.ClipTextLightVisualElement.LayoutLightVisualElement.ImageTransparentColorLightVisualElement.BorderDashStyleLightVisualElement.BorderDashPatternLightVisualElement.EnableImageTransparencyLightVisualElement.SvgImageLightVisualElement.ImageDrawTypeLightVisualElement.AutoEllipsisLightVisualElement.UseMnemonicLightVisualElement.TextWrapLightVisualElement.ShowKeyboardCuesLightVisualElement.MeasureTrailingSpacesLightVisualElement.TextParamsUIItemBase.PaintFill(IGraphics, float, SizeF)UIItemBase.GetFillPaintRect(float, SizeF)UIItemBase.PaintFill(IGraphics, float, SizeF, RectangleF)UIItemBase.PaintBorder(IGraphics, float, SizeF)UIItemBase.PaintBorder(IGraphics, float, SizeF, RectangleF)UIItemBase.OnBoundsChanged(RadPropertyChangedEventArgs)UIItemBase.GetBorderPaintRect(float, SizeF)UIItemBase.ShouldUsePaintBuffer()RadItem.KeyDownEventRadItem.KeyPressEventRadItem.KeyUpEventRadItem.FocusCommandRadItem.ActionCommandRadItem.UseDefaultDisabledPaintPropertyRadItem.TextPropertyRadItem.TextOrientationPropertyRadItem.FlipTextPropertyRadItem.IsAddNewItemPropertyRadItem.ToolTipTextPropertyRadItem.EnableElementShadowPropertyRadItem.ShadowDepthPropertyRadItem.ShadowColorPropertyRadItem.IsPaintingRippleRadItem.EnableRippleAnimationPropertyRadItem.RippleAnimationColorPropertyRadItem.EnableFocusBorderPropertyRadItem.FocusBorderColorPropertyRadItem.FocusBorderWidthPropertyRadItem.EnableFocusBorderAnimationPropertyRadItem.EnableHighlightPropertyRadItem.HighlightColorPropertyRadItem.EnableBorderHighlightPropertyRadItem.BorderHighlightColorPropertyRadItem.BorderHighlightThicknessPropertyRadItem.VisualStatePropertyRadItem.SetOwnerCollection(RadItemOwnerCollection)RadItem.Select()RadItem.OnSelect()RadItem.Deselect()RadItem.OnDeselect()RadItem.DoKeyDown(KeyEventArgs)RadItem.DoKeyPress(KeyPressEventArgs)RadItem.DoKeyUp(KeyEventArgs)RadItem.OnKeyDown(KeyEventArgs)RadItem.OnKeyPress(KeyPressEventArgs)RadItem.OnKeyUp(KeyEventArgs)RadItem.RaiseBubbleEvent(RadElement, RoutedEventArgs)RadItem.OnPropertyChanging(RadPropertyChangingEventArgs)RadItem.OnEnabledChanged(RadPropertyChangedEventArgs)RadItem.OnTextChanging(TextChangingEventArgs)RadItem.OnTextChanged(EventArgs)RadItem.OnTextOrientationChanged(EventArgs)RadItem.OnFlipTextChanged(EventArgs)RadItem.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)RadItem.OnMouseDown(MouseEventArgs)RadItem.OnMouseUp(MouseEventArgs)RadItem.OnMouseLeave(EventArgs)RadItem.StartRippleAnimation(MouseEventArgs)RadItem.UpdateFocusBorder(bool)RadItem.ContainsText()RadItem.ProcessDialogKey(Keys)RadItem.ProcessCmdKey(ref Message, Keys)RadItem.RaiseKeyDown(KeyEventArgs)RadItem.RaiseKeyPress(KeyPressEventArgs)RadItem.RaiseKeyUp(KeyEventArgs)RadItem.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadItem.CallOnGesture(GestureEventArgs)RadItem.OnGesture(GestureEventArgs)RadItem.OnTwoFingerTapGesture(GestureEventArgs)RadItem.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadItem.OnPanGesture(PanGestureEventArgs)RadItem.OnRotateGesture(RotateGestureEventArgs)RadItem.OnZoomGesture(ZoomGestureEventArgs)RadItem.CanDragCore(Point)RadItem.GetDragContextCore()RadItem.GetDragHintCore()RadItem.ProcessDragDrop(Point, ISupportDrag)RadItem.ProcessDragOver(Point, ISupportDrag)RadItem.ProcessDragEnter(Point, ISupportDrag)RadItem.ProcessDragLeave(Point, ISupportDrag)RadItem.UpdateOnShortcutsChanged()RadItem.CanHandleShortcut(ShortcutEventArgs)RadItem.IsOnActiveForm(Control, bool)RadItem.SetThemeValueOverride(RadProperty, object, string)RadItem.SetThemeValueOverride(RadProperty, object, string, string)RadItem.SetThemeValueOverride(RadProperty, object, string, Type)RadItem.ResetThemeValueOverride(RadProperty)RadItem.ResetThemeValueOverride(RadProperty, string)RadItem.ResetThemeValueOverrides()RadItem.GetAvailableVisualStates()RadItem.ShouldFallbackToDefaultTheme()RadItem.UseDefaultDisabledPaintRadItem.TextOrientationRadItem.FlipTextRadItem.CanHaveOwnStyleRadItem.TextRadItem.SelectableRadItem.DefaultAutoToolTipRadItem.ShouldHandleMouseInputRadItem.KeyTipRadItem.ParentItemRadItem.ShortcutsHandlerRadItem.EnableElementShadowRadItem.ShadowDepthRadItem.ShadowColorRadItem.EnableRippleAnimationRadItem.RippleAnimationColorRadItem.EnableFocusBorderRadItem.FocusBorderColorRadItem.FocusBorderWidthRadItem.EnableFocusBorderAnimationRadItem.EnableHighlightRadItem.HighlightColorRadItem.EnableBorderHighlightRadItem.BorderHighlightColorRadItem.BorderHighlightThicknessRadItem.MnemonicTextRadItem.ToolTipTextRadItem.ThemeRoleRadItem.VisualStateRadItem.StateManagerRadItem.AllowDragRadItem.AllowDropRadItem.ShortcutsRadItem.AccessibleDescriptionRadItem.AccessibleNameRadItem.AccessibleRoleRadItem.TextChangingRadItem.TextChangedRadItem.TextOrientationChangedRadItem.FlipTextChangedRadItem.QueryAccessibilityHelpRadItem.KeyDownRadItem.KeyPressRadItem.KeyUpRadItem.ZoomGestureRadItem.RotateGestureRadItem.PanGestureRadItem.TwoFingerTapGestureRadItem.PressAndTapGestureRadComponentElement.ToString()RadComponentElement.GetService(Type)RadComponentElement.CanRaiseEventsRadComponentElement.ContainerRadComponentElement.DesignModeRadComponentElement.SiteRadComponentElement.DataBindingsVisualElement.DefaultSizePropertyVisualElement.ForeColorPropertyVisualElement.BackColorPropertyVisualElement.FontPropertyVisualElement.SmoothingModePropertyVisualElement.OpacityPropertyVisualElement.CustomFontPropertyVisualElement.CustomFontSizePropertyVisualElement.CustomFontStylePropertyVisualElement.OnFontChanged(EventArgs)VisualElement.PaintChildren(IGraphics, Rectangle, float, SizeF, bool)VisualElement.PrePaintElement(IGraphics)VisualElement.PostPaintElement(IGraphics)VisualElement.GetScaledFont(float)VisualElement.GetScaledFont(float, Font)VisualElement.DefaultSizeVisualElement.ForeColorVisualElement.BackColorVisualElement.FontVisualElement.CustomFontVisualElement.CustomFontSizeVisualElement.CustomFontStyleVisualElement.SmoothingModeVisualElement.OpacityVisualElement.FontChangedRadElement.BoundsPropertyRadElement.BorderThicknessPropertyRadElement.PaddingPropertyRadElement.MarginPropertyRadElement.AlignmentPropertyRadElement.AutoSizeModePropertyRadElement.FitToSizeModePropertyRadElement.MinSizePropertyRadElement.EnabledPropertyRadElement.CanFocusPropertyRadElement.IsItemFocusedPropertyRadElement.IsFocusedPropertyRadElement.IsMouseOverPropertyRadElement.IsMouseOverElementPropertyRadElement.IsMouseDownPropertyRadElement.ShouldPaintPropertyRadElement.VisibilityPropertyRadElement.NamePropertyRadElement.ClassPropertyRadElement.ClipDrawingPropertyRadElement.ShapePropertyRadElement.MouseClickedEventRadElement.MouseDoubleClickedEventRadElement.MouseDownEventRadElement.MouseUpEventRadElement.MouseWheelEventRadElement.ChildElementAddedEventRadElement.ParentChangedEventRadElement.BoundsChangedEventRadElement.VisibilityChangingEventRadElement.EnabledChangedEventRadElement.ControlChangedEventRadElement.BackgroundShapePropertyRadElement.BackgroundShapePaintModePropertyRadElement.ContainsFocusPropertyRadElement.ContainsMousePropertyRadElement.MaxSizePropertyRadElement.RightToLeftPropertyRadElement.AutoSizePropertyRadElement.ZIndexPropertyRadElement.AngleTransformPropertyRadElement.ScaleTransformPropertyRadElement.PositionOffsetPropertyRadElement.TagPropertyRadElement.StretchHorizontallyPropertyRadElement.StretchVerticallyPropertyRadElement.UseCompatibleTextRenderingPropertyRadElement.ClickModePropertyRadElement.styleVersionRadElement.paintSystemSkinRadElement.SetPropertyValueCommandRadElement.GetPropertyValueCommandRadElement.StylePropertyRadElement.CallCreateChildElements()RadElement.SuspendReferenceUpdate()RadElement.ResumeReferenceUpdate()RadElement.OnLoad(bool)RadElement.LoadCore()RadElement.OnUnload(ComponentThemableElementTree, bool)RadElement.UnloadCore(ComponentThemableElementTree)RadElement.OnUnloaded(ComponentThemableElementTree)RadElement.OnElementTreeChanged(ComponentThemableElementTree)RadElement.OnBeginDispose()RadElement.SetParent(RadElement)RadElement.OnParentChanged(RadElement)RadElement.UpdateReferences(ComponentThemableElementTree, bool, bool)RadElement.ResetLayout(bool)RadElement.HasInvisibleAncestor()RadElement.ResetLayoutCore()RadElement.InvalidateArrange()RadElement.InvalidateArrange(bool)RadElement.InvalidateMeasure()RadElement.InvalidateMeasure(bool)RadElement.UpdateLayout()RadElement.SuspendLayout()RadElement.SuspendLayout(bool)RadElement.ResumeLayout(bool)RadElement.ResumeLayout(bool, bool)RadElement.Arrange(RectangleF)RadElement.Measure(SizeF)RadElement.SetBounds(Rectangle)RadElement.SetBounds(int, int, int, int)RadElement.GetBoundingRectangle(Size)RadElement.GetBoundingRectangle(Rectangle)RadElement.GetDesiredSize(bool)RadElement.PointToScreen(Point)RadElement.PointFromScreen(Point)RadElement.PointToControl(Point)RadElement.PointFromControl(Point)RadElement.LocationToControl()RadElement.RectangleToScreen(Rectangle)RadElement.HitTest(Point)RadElement.OnRenderSizeChanged(SizeChangedInfo)RadElement.OnChildDesiredSizeChanged(RadElement)RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs)RadElement.ArrangeCore(RectangleF)RadElement.MeasureCore(SizeF)RadElement.ShouldArrangeChild(RadElement)RadElement.ShouldMeasureChild(RadElement)RadElement.MeasureChildren(SizeF)RadElement.GetArrangeRect(RectangleF)RadElement.CanExecuteLayoutOperation()RadElement.CalcLayoutOffset(PointF)RadElement.LockBounds()RadElement.UnlockBounds()RadElement.SetBoundsCore(Rectangle)RadElement.IsInValidState(bool)RadElement.Invalidate()RadElement.Invalidate(bool)RadElement.GetInvalidateBounds()RadElement.NotifyInvalidate(RadElement)RadElement.OnTransformationInvalidated()RadElement.PerformLayoutTransformation(ref RadMatrix)RadElement.PerformPaintTransformation(ref RadMatrix)RadElement.IsInGetAsBitmap()RadElement.PaintElementSkin(IGraphics)RadElement.PaintBackgroundShape(IGraphics)RadElement.PostPaintChildren(IGraphics, Rectangle, float, SizeF)RadElement.PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintShadow(RadElement, IGraphics)RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)RadElement.GetShadowRect(ref Rectangle, int)RadElement.PaintFocusCues(IGraphics, Rectangle)RadElement.GetAsBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)RadElement.GetAsBitmapEx(Brush, float, SizeF)RadElement.GetAsBitmap(Brush, float, SizeF)RadElement.IsInVisibleClipBounds(Rectangle)RadElement.SetClipping(Graphics)RadElement.ShouldPaintChild(RadElement)RadElement.GetFocusRect()RadElement.GetCurrentShape()RadElement.GetPaintRectangle(float, float, SizeF)RadElement.GetPatchedRect(RectangleF, float, SizeF)RadElement.GetXPVisualStyle()RadElement.GetVistaVisualStyle()RadElement.InitializeSystemSkinPaint()RadElement.UnitializeSystemSkinPaint()RadElement.GetSystemSkinPaintBounds()RadElement.OnUseSystemSkinChanged(EventArgs)RadElement.ShouldPaintSystemSkin()RadElement.ComposeShouldPaintSystemSkin()RadElement.ResetStyleSettings(bool)RadElement.ResetStyleSettings(bool, RadProperty)RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)RadElement.AddBehavior(PropertyChangeBehavior)RadElement.GetBehaviors()RadElement.RemoveBehavior(PropertyChangeBehavior)RadElement.ClearBehaviors()RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)RadElement.SetThemeApplied(bool)RadElement.UnapplyStyle()RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection)RadElement.RemoveBehaviors(PropertyChangeBehavior)RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)RadElement.GetThemeEffectiveType()RadElement.GetChildrenByType(Type)RadElement.GetChildrenByBaseType(Type)RadElement.FindAncestorByThemeEffectiveType(Type)RadElement.FindAncestor<T>()RadElement.IsAncestorOf(RadElement)RadElement.FindDescendant<T>()RadElement.FindDescendant(Predicate<RadElement>)RadElement.FindDescendant(Type)RadElement.EnumDescendants(TreeTraversalMode)RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.EnumDescendants(Filter, TreeTraversalMode)RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.GetDescendants(Filter, TreeTraversalMode)RadElement.GetAncestors(Filter)RadElement.GetAncestors(Predicate<RadElement>)RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs)RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs)RadElement.OnBubbleEvent(RadElement, RoutedEventArgs)RadElement.IsEventInProcess(RaisedRoutedEvent)RadElement.RegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, string)RadElement.GetRegisterRoutedEvent(string)RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)RadElement.GetChildren(ChildrenListOptions)RadElement.SendToBack()RadElement.BringToFront()RadElement.IsChildOf(RadElement)RadElement.Focus()RadElement.Focus(bool)RadElement.SetFocusPropertySafe(bool)RadElement.KillFocus()RadElement.OnCLREventsRise(RoutedEventArgs)RadElement.OnMouseHover(EventArgs)RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnLostMouseCapture(MouseEventArgs)RadElement.OnClick(EventArgs)RadElement.OnDoubleClick(EventArgs)RadElement.OnMouseEnter(EventArgs)RadElement.PerformClick()RadElement.OnMouseWheel(MouseEventArgs)RadElement.DoMouseWheel(MouseEventArgs)RadElement.DoClick(EventArgs)RadElement.DoDoubleClick(EventArgs)RadElement.IsInputKey(InputKeyEventArgs)RadElement.MouseEventArgsFromControl(MouseEventArgs)RadElement.DoMouseDown(MouseEventArgs)RadElement.DoMouseUp(MouseEventArgs)RadElement.DoMouseMove(MouseEventArgs)RadElement.ShowScreenTip(ScreenTipNeededEventArgs)RadElement.HideScreenTip()RadElement.DoMouseHover(EventArgs)RadElement.OnShowScreenTip(ComponentInputBehavior)RadElement.RaiseClick(EventArgs)RadElement.RaiseDoubleClick(EventArgs)RadElement.RaiseMouseWheel(MouseEventArgs)RadElement.UpdateContainsFocus(bool)RadElement.DoMouseEnter(EventArgs)RadElement.DoMouseLeave(EventArgs)RadElement.GetValue(RadProperty)RadElement.AddStylePropertySetting(IPropertySetting)RadElement.SetValueCore(RadPropertyValue, object, object, ValueSource)RadElement.NotifyChildren(RadPropertyChangedEventArgs)RadElement.OnLocationChanged(RadPropertyChangedEventArgs)RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)RadElement.IsPropertyCancelable(RadPropertyMetadata)RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)RadElement.PerformDispose(bool)RadElement.DisposeChildren()RadElement.GetStylableChildrenHierarchy()RadElement.GetStylableChildren()RadElement.GetBorderThickness(BorderPrimitive)RadElement.DpiScaleChanged(SizeF)RadElement.ElementStateRadElement.DesiredSizeRadElement.IsLayoutSuspendedRadElement.BoundingRectangleRadElement.ControlBoundingRectangleRadElement.BypassLayoutPoliciesRadElement.IsArrangeValidRadElement.IsMeasureValidRadElement.TreeLevelRadElement.TransformRadElement.TotalTransformRadElement.ShouldPaintUsingParentShapeRadElement.UseSystemSkinRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.NotifyParentOnMouseInputRadElement.IsAbleToRespondToMouseEventsRadElement.AutoSizeRadElement.BoundsRadElement.LocationRadElement.SizeRadElement.BorderThicknessRadElement.PaddingRadElement.MarginRadElement.AlignmentRadElement.AutoSizeModeRadElement.FitToSizeModeRadElement.EnabledRadElement.IsFocusedRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.VisibilityRadElement.IsElementVisibleRadElement.NameRadElement.ClassRadElement.ClipDrawingRadElement.ShapeRadElement.MinSizeRadElement.MaxSizeRadElement.ZIndexRadElement.RightToLeftRadElement.UseCompatibleTextRenderingRadElement.BackgroundShapeRadElement.BackgroundShapePaintModeRadElement.ContainsMouseRadElement.CaptureRadElement.ScaleTransformRadElement.AngleTransformRadElement.PositionOffsetRadElement.SerializePropertiesRadElement.SerializeElementRadElement.SerializeChildrenRadElement.RenderingMaxFramerateRadElement.IsThemeAppliedRadElement.ShouldApplyThemeRadElement.UseCenteredAngleTransformRadElement.TagRadElement.StretchHorizontallyRadElement.StretchVerticallyRadElement.ClickModeRadElement.DoubleClickEnabledRadElement.CaptureOnMouseDownRadElement.IsItemHoveredRadElement.StyleRadElement.AutoToolTipRadElement.ScreenTipRadElement.AutoNumberKeyTipRadElement.DpiScaleFactorRadElement.LayoutUpdatedRadElement.MouseHoverRadElement.MouseMoveRadElement.MouseDownRadElement.MouseUpRadElement.ClickRadElement.DoubleClickRadElement.MouseEnterRadElement.MouseWheelRadElement.EnabledChangedRadElement.MouseLeaveRadElement.ChildrenChangedRadElement.LostMouseCaptureRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

RadListViewElement()

Declaration

cs-api-definition
public RadListViewElement()

Fields

cachedOldValue

Declaration

cs-api-definition
protected object cachedOldValue

Field Value

object

Properties

ActiveEditor

Gets the currently active editor when an edit operation is in progress.

Declaration

cs-api-definition
[Browsable(false)]
public IInputEditor ActiveEditor { get; }

Property Value

IInputEditor

Remarks

Returns null when no editing is taking place. The active editor provides access to the current edit value and allows for programmatic control over the editing process.

AllowArbitraryItemHeight

Gets or sets a value indicating whether items can have different heights from each other.

Declaration

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

Property Value

bool

Remarks

When enabled, each item can be sized independently based on its content. When disabled, all items share the same height for consistent layout and improved performance.

AllowArbitraryItemWidth

Gets or sets a value indicating whether items can have different widths from each other.

Declaration

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

Property Value

bool

Remarks

When enabled, each item can be sized independently based on its content width. When disabled, all items share the same width for consistent layout and improved performance.

AllowColumnReorder

Gets or sets a value indicating whether users can reorder columns by dragging and dropping them in Details View.

Declaration

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

Property Value

bool

Remarks

When enabled, users can click and drag column headers to reposition them within the column layout. This provides a flexible way to customize the data presentation without requiring code changes.

AllowColumnResize

Gets or sets a value indicating whether users can resize columns by dragging the column borders in Details View.

Declaration

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

Property Value

bool

Remarks

When enabled, users can position the mouse cursor over column borders and drag to adjust column widths. This provides interactive control over the data presentation layout.

AllowDragDrop

Gets or sets a value indicating whether users can reorder items by dragging and dropping them within the list.

Declaration

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

Property Value

bool

Remarks

Item drag-and-drop is automatically disabled when using data sources, grouping, filtering, sorting, kinetic scrolling, or lasso selection, as these features conflict with manual item reordering.

AllowEdit

Gets or sets a value indicating whether users can edit item values by activating edit mode.

Declaration

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

Property Value

bool

Remarks

When enabled, users can edit items by pressing F2, clicking on selected items, or programmatically calling edit methods. Editing behavior depends on the view type and current column in Details View.

AllowRemove

Gets or sets a value indicating whether users can remove items by pressing the Delete key.

Declaration

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

Property Value

bool

Remarks

When enabled, pressing the Delete key will remove the selected items from the collection. The removal can be cancelled by handling the ItemRemoving event.

AutoSizeColumnsMode

Gets or sets a value indicating how column widths are determined.

Declaration

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

Property Value

ListViewAutoSizeColumnsMode

Remarks

Different modes provide various automatic sizing behaviors such as fitting all columns within the available width, sizing based on content, or maintaining fixed widths. The sizing behavior is handled by the appropriate ColumnResizingBehavior implementation.

BindingContext

Gets or sets the BindingContext.

Declaration

cs-api-definition
public override BindingContext BindingContext { get; set; }

Property Value

BindingContext

Overrides RadObject.BindingContext

Implements IDataItemSource.BindingContext

Remarks

The binding context provides currency management and change tracking for data binding operations. When set, it triggers the BindingContextChanged event to notify of the change.

CaseSensitiveColumnNames

Gets or sets a value indicating whether column names which differ only in the casing are allowed.

Declaration

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

Property Value

bool

Remarks

When set to true, columns with names like "Name" and "name" will be treated as different columns. This affects data binding operations, sorting, filtering, and grouping behavior.

CheckBoxesAlignment

Gets or sets the vertical alignment of checkboxes within list view items.

Declaration

cs-api-definition
public CheckBoxesAlignment CheckBoxesAlignment { get; set; }

Property Value

CheckBoxesAlignment

Remarks

This property determines how checkboxes are aligned vertically within the bounds of each item, such as center, top, or bottom alignment.

CheckBoxesPosition

Gets or sets the position of checkboxes relative to list view items.

Declaration

cs-api-definition
public CheckBoxesPosition CheckBoxesPosition { get; set; }

Property Value

CheckBoxesPosition

CheckOnClickMode

Gets or sets the mode that determines when an item's check state changes in response to user clicks.

Declaration

cs-api-definition
public CheckOnClickMode CheckOnClickMode { get; set; }

Property Value

CheckOnClickMode

Remarks

This property controls the relationship between item selection and checkbox state changes, allowing for different interaction patterns such as immediate toggling or requiring multiple clicks.

CheckedItems

Gets a collection containing all currently checked items when ShowCheckBoxes is enabled.

Declaration

cs-api-definition
[Browsable(false)]
public ListViewCheckedItemCollection CheckedItems { get; }

Property Value

ListViewCheckedItemCollection

Remarks

Checked items are independent of selected items and allow for bulk operations on multiple items. The collection is read-only and automatically maintained as check states change.

CheckedMember

Gets or sets the checked member.

Declaration

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

Property Value

string

Remarks

When data binding is used and ShowCheckBoxes is enabled, this property specifies which field or property from the data source should be used to determine whether each item's checkbox is checked. The field should contain boolean values.

ColumnResizingBehavior

Gets or sets the ColumnResizingBehavior that is responsible for resizing the columns.

Declaration

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

Property Value

BaseColumnResizingBehavior

Remarks

The column resizing behavior determines how columns respond to user resize operations and automatic sizing scenarios. Different behaviors can provide various resizing modes such as proportional resizing or fixed-width constraints.

Columns

Gets the collection of columns that define the structure and appearance of Details View.

Declaration

cs-api-definition
[Browsable(true)]
public ListViewColumnCollection Columns { get; }

Property Value

ListViewColumnCollection

Remarks

Each column represents a data field and defines how that field is displayed, including width, header text, and formatting. Columns are only used in Details View; other view types ignore this collection.

CurrentColumn

Gets or sets the currently active column in Details View for editing and navigation purposes.

Declaration

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

Property Value

ListViewDetailColumn

Remarks

The current column determines which column will be edited when edit operations begin. Setting this property automatically ensures the column is visible and updates the column's current state.

CurrentItem

Gets or sets the item that currently has focus and represents the navigation position within the list.

Declaration

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

Property Value

ListViewDataItem

Remarks

The current item is different from the selected item and represents the focused item for keyboard navigation. Setting this property updates the underlying data view's current position and ensures the item is visible.

DataMember

Gets or sets the DataMember within the data source that the RadListViewElement should bind to.

Declaration

cs-api-definition
public string DataMember { get; set; }

Property Value

string

Remarks

This property is used when the data source contains multiple tables or lists, such as a DataSet with multiple DataTables. It specifies which specific table or list should be used for data binding.

DataSource

Gets or sets the data source of a RadListViewElement.

Declaration

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

Property Value

object

Remarks

The data source can be any object that implements IList, IListSource, or IEnumerable. When a data source is assigned, the list view automatically creates items and columns based on the data structure. Setting the data source to null clears the data binding and resets the DisplayMember, ValueMember, and CheckedMember properties.

DataView

Gets the DataView collection.

Declaration

cs-api-definition
[Browsable(false)]
public RadCollectionView<ListViewDataItem> DataView { get; }

Property Value

RadCollectionView<ListViewDataItem>

Remarks

The data view wraps the underlying data source and provides a layer for data operations without modifying the original data. It supports complex filtering expressions, multi-level sorting, and hierarchical grouping.

DisplayMember

Gets or sets the display member.

Declaration

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

Property Value

string

Remarks

When data binding is used, this property specifies which field or property from the data source should be displayed as the text content of each list item. If not specified, the ToString() method of the data objects is used.

DragDropService

Gets or sets the drag and drop service that handles item reordering and drag-drop operations.

Declaration

cs-api-definition
public ListViewDragDropService DragDropService { get; set; }

Property Value

ListViewDragDropService

Remarks

The drag drop service provides functionality for dragging items within the list view and dropping them at different positions or to external targets.

EnableColumnSort

Gets or sets a value indicating whether items should be automatically sorted when users click on column headers in Details View.

Declaration

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

Property Value

bool

Remarks

When enabled, clicking on column headers will cycle through ascending sort, descending sort, and no sort states. This provides an intuitive way for users to sort data without requiring custom code.

EnableCustomGrouping

Gets or sets a value indicating whether custom grouping is enabled.

Declaration

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

Property Value

bool

Remarks

When enabled, grouping operations are handled through custom code rather than automatic grouping descriptors. This allows for complex grouping scenarios that cannot be expressed through simple property-based grouping.

EnableFiltering

Gets or sets a value indicating whether filtering is enabled.

Declaration

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

Property Value

bool

Remarks

When enabled, items can be filtered programmatically using FilterDescriptors. Filtering allows hiding items that don't match specified criteria without removing them from the data source.

EnableGrouping

Gets or sets a value indicating whether grouping is enabled.

Declaration

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

Property Value

bool

Remarks

When enabled, items can be grouped programmatically using GroupDescriptors. Grouping organizes items with similar values into collapsible categories for better data organization.

EnableKineticScrolling

Gets or sets a value indicating whether kinetic scrolling is enabled, allowing smooth momentum-based scrolling with touch or mouse gestures.

Declaration

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

Property Value

bool

Remarks

Kinetic scrolling provides a natural scrolling experience with momentum and deceleration effects. This property always returns false when EnableLassoSelection is enabled, as the two features are incompatible.

EnableLassoSelection

Gets or sets a value indicating whether items can be selected with the mouse.

Declaration

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

Property Value

bool

Remarks

When enabled, users can click and drag to create a selection rectangle that selects all items within its bounds. Lasso selection automatically disables kinetic scrolling and is not compatible with certain other features.

EnableSorting

Gets or sets a value indicating whether sorting is enabled.

Declaration

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

Property Value

bool

Remarks

When enabled, items can be sorted programmatically using SortDescriptors. In design mode, this property maintains the design-time setting until runtime initialization.

FilterDescriptors

Gets a collection of FilterDescriptor by which you can apply filter rules to the items.

Declaration

cs-api-definition
[Browsable(true)]
public ListViewFilterDescriptorCollection FilterDescriptors { get; }

Property Value

ListViewFilterDescriptorCollection

Remarks

Filter descriptors allow creating complex filtering expressions that determine which items are visible in the list view. Filtering is only available when EnableFiltering is true.

FullRowSelect

Gets or sets a value indicating whether the entire row should be highlighted when an item is selected.

Declaration

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

Property Value

bool

Remarks

When enabled, selection highlighting extends across the full width of the item area. When disabled, only the item content area is highlighted, which can provide a more compact appearance.

GroupDescriptors

Gets a collection of GroupDescriptor which are used to define grouping rules over the ListViewDataItemCollection.

Declaration

cs-api-definition
[Browsable(true)]
public GroupDescriptorCollection GroupDescriptors { get; }

Property Value

GroupDescriptorCollection

Remarks

Group descriptors specify the properties used for grouping items with similar values together. Multiple group descriptors create hierarchical grouping with nested group levels.

GroupIndent

Gets or sets the indentation distance for items displayed within groups.

Declaration

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

Property Value

int

Remarks

When grouping is enabled, regular items are indented by this amount relative to group headers to provide visual hierarchy and distinction between groups and their contents.

GroupItemSize

Gets or sets the default group item size.

Declaration

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

Property Value

Size

Remarks

This size applies to the visual elements that represent group headers when ShowGroups is enabled. A size of (0,0) indicates automatic sizing based on group header content.

Groups

Gets a collection containing the groups of the RadListViewElement.

Declaration

cs-api-definition
[Browsable(true)]
public ListViewDataItemGroupCollection Groups { get; }

Property Value

ListViewDataItemGroupCollection

Remarks

Groups are created automatically based on GroupDescriptors or can be manually managed when EnableCustomGrouping is enabled. Groups are only visible when ShowGroups is true.

HeaderHeight

Gets or sets the height of column headers in Details View.

Declaration

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

Property Value

float

Remarks

This property controls the vertical space allocated for column headers when ShowColumnHeaders is enabled. The value is automatically scaled based on the current DPI settings for high-DPI scenarios.

HorizontalScrollState

Gets or sets the display state of the horizontal scrollbar.

Declaration

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

Property Value

ScrollState

Remarks

Controls when the horizontal scrollbar appears: always visible, always hidden, or automatically shown only when the content width exceeds the available display area.

HotTracking

Gets or sets a value indicating whether items should react on mouse hover.

Declaration

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

Property Value

bool

Remarks

When enabled, items will change their appearance (typically highlighting) when the mouse pointer moves over them, providing immediate visual feedback to users about which item they can interact with.

IsDataBound

Gets a value indicating whether the control is currently bound to a data source.

Declaration

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

Property Value

bool

Remarks

Returns true when a data source has been assigned to the DataSource property. Data binding automatically creates items and columns based on the structure of the bound data.

IsEditing

Gets a value indicating whether an edit operation is currently active on an item.

Declaration

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

Property Value

bool

Remarks

Returns true when an editor is active and the user is currently editing an item's value. This property is read-only and reflects the editing state managed by the ActiveEditor property.

ItemSize

Gets or sets the default item size.

Declaration

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

Property Value

Size

Remarks

This size is used as a starting point for item layout. Individual items may be sized differently if AllowArbitraryItemHeight or AllowArbitraryItemWidth are enabled. A size of (0,0) indicates automatic sizing based on content.

ItemSpacing

Gets or sets the spacing distance between adjacent items in the layout.

Declaration

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

Property Value

int

Remarks

This property controls the gap between items, providing visual separation and improving readability. The spacing applies to both horizontal and vertical gaps depending on the current view type and layout direction.

Items

Gets or sets a collection of ListViewDataItem object which represent the items in RadListViewElement.

Declaration

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

Property Value

ListViewDataItemCollection

Remarks

When data binding is used, this collection is automatically populated from the data source. When not data bound, items can be added and removed directly from this collection.

KeyboardSearchEnabled

Gets or sets a value indicating whether users can navigate to items by typing their first characters when the list view has focus.

Declaration

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

Property Value

bool

Remarks

When enabled, typing characters will search for and select the first item that starts with those characters. This provides quick keyboard navigation for large lists. The default value is false.

KeyboardSearchResetInterval

Gets or sets the time interval in milliseconds that must elapse before the keyboard search resets to start a new search.

Declaration

cs-api-definition
public int KeyboardSearchResetInterval { get; set; }

Property Value

int

Remarks

After this interval without typing, the next keystroke will start a new search from the beginning rather than continuing the current search. The default value is 300 milliseconds.

ListSource

Gets the list source that manages data binding operations and provides access to the underlying data.

Declaration

cs-api-definition
[Browsable(false)]
public RadListSource<ListViewDataItem> ListSource { get; }

Property Value

RadListSource<ListViewDataItem>

Remarks

The list source acts as an intermediary between the list view and the data source, handling data binding, change notifications, and data transformation operations.

MultiSelect

Gets or sets a value indicating whether multiple items can be selected simultaneously.

Declaration

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

Property Value

bool

Remarks

When enabled, users can select multiple items using Ctrl+Click, Shift+Click, or lasso selection. When disabled, selecting a new item automatically deselects any previously selected items.

SelectLastAddedItem

Gets or sets a value indicating whether the last added item in the RadListView data source will be automatically selected by the control.

Declaration

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

Property Value

bool

Remarks

When set to true, adding new items to the data source will automatically select the most recently added item. This is useful for scenarios where immediate user attention should be drawn to newly created items.

SelectedIndex

Gets or sets the zero-based index of the currently selected item.

Declaration

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

Property Value

int

Remarks

Returns -1 when no item is selected. Setting this property to a valid index selects the corresponding item, while setting it to an invalid index (negative or beyond the collection size) clears the selection.

SelectedItem

Gets or sets the currently selected item in the list view.

Declaration

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

Property Value

ListViewDataItem

Remarks

Only one item can be selected at a time unless MultiSelect is enabled. Setting this property triggers selection change events and updates the visual appearance of items.

SelectedItems

Gets a collection containing all currently selected items.

Declaration

cs-api-definition
[Browsable(false)]
public ListViewSelectedItemCollection SelectedItems { get; }

Property Value

ListViewSelectedItemCollection

Remarks

When MultiSelect is disabled, this collection contains at most one item. The collection is read-only and automatically maintained as selection changes occur.

SelectionRectangleBorderColor

Gets or sets the border color of the lasso selection rectangle.

Declaration

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

Property Value

Color

Remarks

This color defines the outline of the selection rectangle when EnableLassoSelection is enabled. The border provides clear visual feedback about the selection area boundaries.

SelectionRectangleColor

Gets or sets the fill color of the lasso selection rectangle drawn during drag selection operations.

Declaration

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

Property Value

Color

Remarks

This color is used to fill the selection rectangle when EnableLassoSelection is enabled and users drag to select multiple items. The fill is typically semi-transparent to allow underlying content to show through.

ShowCheckBoxes

Gets or sets a value indicating whether checkboxes should be displayed next to each item for selection purposes.

Declaration

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

Property Value

bool

Remarks

When enabled, each item displays a checkbox that can be checked independently of item selection. This allows for bulk operations on checked items and multi-state selection scenarios.

ShowColumnHeaders

Gets or sets a value indicating whether column headers should be visible in Details View.

Declaration

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

Property Value

bool

Remarks

Column headers display column names and provide click targets for sorting operations. Hiding headers can save vertical space but removes sorting functionality and column identification.

ShowGridLines

Gets or sets a value indicating whether grid lines should be displayed in Details View to separate rows and columns.

Declaration

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

Property Value

bool

Remarks

Grid lines provide visual separation between items and columns in Details View, making it easier to read tabular data. This property only affects Details View; other view types do not display grid lines.

ShowGroups

Gets or sets a value indicating whether items should be organized and displayed in collapsible groups.

Declaration

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

Property Value

bool

Remarks

When enabled, items with the same group value are visually grouped together under expandable/collapsible group headers. Grouping works in conjunction with GroupDescriptors to define grouping criteria.

SortDescriptors

Gets a collection of SortDescriptor which are used to define sorting rules over the ListViewDataItemCollection.

Declaration

cs-api-definition
[Browsable(true)]
public SortDescriptorCollection SortDescriptors { get; }

Property Value

SortDescriptorCollection

Remarks

Sort descriptors specify the properties and directions used for sorting items. Multiple sort descriptors create multi-level sorting where items are sorted by the first descriptor, then by the second descriptor within equal groups, and so on.

ThreeStateMode

Gets or sets a value indicating whether the checkboxes should be in ThreeState mode.

Declaration

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

Property Value

bool

ValueMember

Gets or sets the value member.

Declaration

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

Property Value

string

Remarks

When data binding is used, this property specifies which field or property from the data source should be used as the value for each list item. This is important for scenarios where the displayed text differs from the underlying value.

VerticalScrollState

Gets or sets the display state of the vertical scrollbar.

Declaration

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

Property Value

ScrollState

Remarks

Controls when the vertical scrollbar appears: always visible, always hidden, or automatically shown only when the content height exceeds the available display area.

ViewElement

Gets the element that represents the active view.

Declaration

cs-api-definition
[Browsable(false)]
public BaseListViewElement ViewElement { get; }

Property Value

BaseListViewElement

Remarks

The view element is automatically created based on the view type and manages item layout, scrolling, virtualization, and user interaction for the specific view mode.

ViewType

Gets or sets the visual layout mode that determines how items are presented and organized.

Declaration

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

Property Value

ListViewType

Remarks

Changing the view type recreates the view element and can significantly alter the appearance and behavior of the list view. Available types include ListView (simple list), IconsView (icon grid), and DetailsView (table format).

Methods

BeginEdit()

Initiates an edit operation on the currently selected item.

Declaration

cs-api-definition
public virtual bool BeginEdit()

Returns

bool

True if the edit operation was successfully started; otherwise, false.

Remarks

The edit operation will fail if editing is disabled, an editor is already active, multiple items are selected, no item is selected, or in Details View when no current column is set. The method ensures the item is visible and properly initializes the appropriate editor for the current view type.

BeginUpdate()

Suspends item change notifications until EndUpdate() is called to improve performance.

Declaration

cs-api-definition
public void BeginUpdate()

Remarks

This method is useful when adding, removing, or modifying multiple items at once. It prevents individual change notifications from being fired for each operation, which can significantly improve performance during bulk operations.

BestFitColumns(ListViewBestFitColumnMode)

Automatically adjusts column widths based on their content according to the specified fitting mode.

Declaration

cs-api-definition
public void BestFitColumns(ListViewBestFitColumnMode mode)

Parameters

mode

ListViewBestFitColumnMode

The ListViewBestFitColumnMode that determines how columns should be sized.

Remarks

This method only has an effect in Details View. It analyzes the content of columns and adjusts their widths to optimally display the data according to the specified mode, such as fitting headers, content, or both.

BindingComplete()

Completes the data binding process and raises the BindingCompleted event.

Declaration

cs-api-definition
public void BindingComplete()

Implements IDataItemSource.BindingComplete()

Remarks

This method is called when the data binding initialization process has finished successfully. It allows subscribers to perform any post-binding operations or UI updates.

CancelEdit()

Cancels the current edit operation, discarding any changes made to the item.

Declaration

cs-api-definition
public bool CancelEdit()

Returns

bool

True if the edit operation was successfully cancelled; otherwise, false.

Remarks

This method abandons any changes made during the edit operation and restores the item to its previous state. The editor is properly cleaned up and removed from the visual tree.

CheckAllItems()

Checks all of the items.

Declaration

cs-api-definition
public void CheckAllItems()

Remarks

This method is only effective when ShowCheckBoxes is enabled. It provides a convenient way to check all items in the list view regardless of their selection state.

CheckSelectedItems()

Checks all of the selected items.

Declaration

cs-api-definition
public void CheckSelectedItems()

Remarks

This method is only effective when ShowCheckBoxes is enabled. It provides a convenient way to check all selected items in a single operation.

CollapseAll()

Collapses all group headers.

Declaration

cs-api-definition
public void CollapseAll()

Remarks

This method sets the Expanded property to false for all groups in the Groups collection. It only has an effect when ShowGroups is enabled and groups are present.

CreateBindingContext()

Creates a new binding context instance for managing data binding operations.

Declaration

cs-api-definition
protected virtual BindingContext CreateBindingContext()

Returns

BindingContext

A new BindingContext instance.

CreateChildElements()

Creates and initializes all child elements and sets up the basic structure of the list view.

Declaration

cs-api-definition
protected override void CreateChildElements()

Overrides RadElement.CreateChildElements()

Remarks

This method creates the binding context, list source, data collections, view element, and other essential components. It also establishes event handlers and creates the initial view element based on the default view type.

CreateViewElement()

Creates and returns the appropriate view element based on the current ViewType.

Declaration

cs-api-definition
protected virtual BaseListViewElement CreateViewElement()

Returns

BaseListViewElement

A new BaseListViewElement instance configured for the current view type.

Remarks

This method acts as a factory for creating view-specific elements. It creates different element types for ListView, IconsView, and DetailsView, with ListView as the default fallback option.

DisposeManagedResources()

Disposes of managed resources including cached editors and the list source.

Declaration

cs-api-definition
protected override void DisposeManagedResources()

Overrides LightVisualElement.DisposeManagedResources()

Remarks

This method performs cleanup of managed resources, including unwiring events, disposing cached editors and their elements, clearing the editor cache, and disposing the list source. It ensures proper resource cleanup to prevent memory leaks.

EndEdit()

Ends the current edit operation, saving any changes made to the item.

Declaration

cs-api-definition
public bool EndEdit()

Returns

bool

True if the edit operation was successfully completed; otherwise, false.

Remarks

This method commits any changes made during the edit operation and properly cleans up the editor. If validation fails or other issues occur, the edit operation may not complete successfully.

EndEditCore(bool)

Implements the core logic for ending or cancelling an edit operation.

Declaration

cs-api-definition
protected virtual bool EndEditCore(bool commitChanges)

Parameters

commitChanges

bool

True to save changes; false to discard them.

Returns

bool

True if the operation completed successfully; otherwise, false.

Remarks

This method handles the complete lifecycle of ending an edit operation, including validation, value saving, editor cleanup, and event notification. It includes protection against re-entrant calls and ensures proper state management.

EndUpdate()

Resumes item change notifications that were suspended by BeginUpdate().

Declaration

cs-api-definition
public void EndUpdate()

Remarks

This method restores normal change notification behavior and triggers any pending notifications that were accumulated during the update suspension period.

EnsureColumnVisible(ListViewDetailColumn)

Scrolls the view to ensure that the specified column is visible in Details View.

Declaration

cs-api-definition
public virtual void EnsureColumnVisible(ListViewDetailColumn listViewDetailColumn)

Parameters

listViewDetailColumn

ListViewDetailColumn

The ListViewDetailColumn to make visible.

Remarks

This method only has an effect when the current view type is Details View. It scrolls horizontally to bring the specified column into the visible area of the control.

EnsureItemVisible(ListViewDataItem)

Scrolls the view to ensure that the specified item is visible within the client area.

Declaration

cs-api-definition
public virtual void EnsureItemVisible(ListViewDataItem item)

Parameters

item

ListViewDataItem

The ListViewDataItem to make visible.

Remarks

This method scrolls the list view vertically to bring the specified item into view. If the item is already visible, no scrolling occurs.

EnsureItemVisible(ListViewDataItem, bool)

Scrolls the view to ensure that the specified item is visible, with optional horizontal scrolling.

Declaration

cs-api-definition
public virtual void EnsureItemVisible(ListViewDataItem item, bool ensureHorizontally)

Parameters

item

ListViewDataItem

The ListViewDataItem to make visible.

ensureHorizontally

bool

If true, also scrolls horizontally to ensure the item is fully visible.

Remarks

This method provides more control over the scrolling behavior by allowing horizontal scrolling in addition to vertical scrolling. This is particularly useful in scenarios where items may extend beyond the horizontal bounds of the view.

ExpandAll()

Expands all group headers.

Declaration

cs-api-definition
public void ExpandAll()

Remarks

This method sets the Expanded property to true for all groups in the Groups collection. It only has an effect when ShowGroups is enabled and groups are present.

FindItemByKey(object)

Searches for and returns the first item that has the specified key value.

Declaration

cs-api-definition
public virtual ListViewDataItem FindItemByKey(object key)

Parameters

key

object

The key value to search for.

Returns

ListViewDataItem

The first ListViewDataItem with the specified key, or null if no match is found.

Remarks

This method searches through all items in the collection, including items that may not currently be visible. The search uses object equality comparison to match the key values.

FindItemByKey(object, bool)

Searches for and returns the first item that has the specified key value, with an option to search only visible items.

Declaration

cs-api-definition
public virtual ListViewDataItem FindItemByKey(object key, bool searchVisibleItems)

Parameters

key

object

The key value to search for.

searchVisibleItems

bool

If true, searches only currently visible items; if false, searches all items.

Returns

ListViewDataItem

The first ListViewDataItem with the specified key, or null if no match is found.

Remarks

When searchVisibleItems is true, only items that are currently virtualized and visible in the view will be searched. This can be more efficient for large datasets but may not find items that are scrolled out of view.

GetEditor(Type)

Retrieves or creates an editor instance of the specified type from the editor cache.

Declaration

cs-api-definition
protected virtual IInputEditor GetEditor(Type editorType)

Parameters

editorType

Type

The type of editor to retrieve or create.

Returns

IInputEditor

An instance of the specified editor type, or null if creation fails.

Remarks

This method maintains a cache of editor instances to improve performance by reusing editors across multiple edit operations. If an editor of the requested type doesn't exist in the cache, a new instance is created and added to the cache.

Initialize()

Initializes the RadListViewElement.

Declaration

cs-api-definition
public void Initialize()

Implements IDataItemSource.Initialize()

Remarks

This method performs a complete reset of the list view's data-related state, including clearing visual items, resetting selections, and rebuilding bound columns if data binding is active. The operation is performed with layout suspension for optimal performance.

InitializeEditor(BaseListViewVisualItem, ISupportInitialize, IInputEditor)

Initializes the editor for the specified visual item with the appropriate initial value.

Declaration

cs-api-definition
protected virtual void InitializeEditor(BaseListViewVisualItem visualItem, ISupportInitialize initializable, IInputEditor editor)

Parameters

visualItem

BaseListViewVisualItem

The visual item being edited.

initializable

ISupportInitialize

The initializable interface of the editor, if supported.

editor

IInputEditor

The editor instance to initialize.

Remarks

This method sets up the editor with the correct initial value based on the current view type. In Details View, the value comes from the current column; otherwise, it uses the item's main value. The method also handles Material theme adjustments for proper editor display.

MeasureOverride(SizeF)

Measures the desired size of the element within the constraints of the available size.

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The available space that can be given to the element.

Returns

SizeF

The desired size of the element.

Overrides LightVisualElement.MeasureOverride(SizeF)

Remarks

This method ensures that infinite sizes are converted to the measured size to prevent layout issues. It provides a consistent measurement result that works within the layout system constraints.

NewItem()

Creates a new item for the data source.

Declaration

cs-api-definition
public IDataItem NewItem()

Returns

IDataItem

A new ListViewDataItem instance configured for this list view element.

Implements IDataItemSource.NewItem()

Remarks

This method creates a new item and allows for customization through the ItemCreating event. The created item is automatically assigned ownership to this list view element.

OnBindingContextChanged(EventArgs)

Raises the BindingContextChanged event when the binding context changes.

Declaration

cs-api-definition
protected virtual void OnBindingContextChanged(EventArgs e)

Parameters

e

EventArgs

The event data.

OnCellCreating(ListViewCellElementCreatingEventArgs)

Raises the CellCreating event when a cell element needs to be created.

Declaration

cs-api-definition
protected virtual void OnCellCreating(ListViewCellElementCreatingEventArgs args)

Parameters

args

ListViewCellElementCreatingEventArgs

The event data containing the cell creation information.

OnCellFormatting(ListViewCellFormattingEventArgs)

Raises the CellFormatting event when a cell in Details View needs formatting.

Declaration

cs-api-definition
protected virtual void OnCellFormatting(ListViewCellFormattingEventArgs args)

Parameters

args

ListViewCellFormattingEventArgs

The event data containing the cell formatting information.

OnColumnCreating(ListViewColumnCreatingEventArgs)

Raises the ColumnCreating event when a column needs to be created.

Declaration

cs-api-definition
protected virtual void OnColumnCreating(ListViewColumnCreatingEventArgs args)

Parameters

args

ListViewColumnCreatingEventArgs

The event data containing the column creation information.

OnCurrentItemChanged(ListViewItemEventArgs)

Raises the CurrentItemChanged event when the current item has changed.

Declaration

cs-api-definition
protected virtual void OnCurrentItemChanged(ListViewItemEventArgs args)

Parameters

args

ListViewItemEventArgs

The event data containing the current item information.

OnCurrentItemChanging(ListViewItemChangingEventArgs)

Raises the CurrentItemChanging event and allows cancellation of the current item change.

Declaration

cs-api-definition
protected virtual bool OnCurrentItemChanging(ListViewItemChangingEventArgs args)

Parameters

args

ListViewItemChangingEventArgs

The event data containing the current item change information.

Returns

bool

Returns true if the operation was cancelled; otherwise, false.

OnDataItemCreating(ListViewItemCreatingEventArgs)

Raises the ItemCreating event when a data item needs to be created.

Declaration

cs-api-definition
protected virtual void OnDataItemCreating(ListViewItemCreatingEventArgs args)

Parameters

args

ListViewItemCreatingEventArgs

The event data containing the item creation information.

OnEdited(ListViewItemEditedEventArgs)

Raises the ItemEdited event when an item has been edited.

Declaration

cs-api-definition
protected virtual void OnEdited(ListViewItemEditedEventArgs args)

Parameters

args

ListViewItemEditedEventArgs

The event data containing the editing information.

OnEditing(ListViewItemEditingEventArgs)

Raises the ItemEditing event when an edit operation is about to begin.

Declaration

cs-api-definition
protected virtual void OnEditing(ListViewItemEditingEventArgs e)

Parameters

e

ListViewItemEditingEventArgs

The event data containing the editing information.

OnEditorInitialized(ListViewItemEditorInitializedEventArgs)

Raises the EditorInitialized event when an editor has been successfully initialized.

Declaration

cs-api-definition
protected virtual void OnEditorInitialized(ListViewItemEditorInitializedEventArgs e)

Parameters

e

ListViewItemEditorInitializedEventArgs

The event data containing the editor initialization information.

OnEditorRequired(ListViewItemEditorRequiredEventArgs)

Raises the EditorRequired event when an editor is needed for item editing.

Declaration

cs-api-definition
protected virtual void OnEditorRequired(ListViewItemEditorRequiredEventArgs e)

Parameters

e

ListViewItemEditorRequiredEventArgs

The event data containing the editor requirements.

OnItemCheckedChanged(ListViewItemEventArgs)

Raises the ItemCheckedChanged event when an item's check state has changed.

Declaration

cs-api-definition
protected virtual void OnItemCheckedChanged(ListViewItemEventArgs args)

Parameters

args

ListViewItemEventArgs

The event data containing the item information.

OnItemCheckedChanging(ListViewItemCancelEventArgs)

Raises the ItemCheckedChanging event and allows cancellation of the item check state change.

Declaration

cs-api-definition
protected virtual bool OnItemCheckedChanging(ListViewItemCancelEventArgs args)

Parameters

args

ListViewItemCancelEventArgs

The event data containing the item check state change information.

Returns

bool

Returns true if the operation was cancelled; otherwise, false.

OnItemDataBound(ListViewDataItem)

Raises the ItemDataBound event when an item is bound to data.

Declaration

cs-api-definition
protected virtual void OnItemDataBound(ListViewDataItem item)

Parameters

item

ListViewDataItem

The ListViewDataItem that was bound to data.

OnItemMouseClick(ListViewItemEventArgs)

Raises the ItemMouseClick event when an item is clicked.

Declaration

cs-api-definition
protected virtual void OnItemMouseClick(ListViewItemEventArgs args)

Parameters

args

ListViewItemEventArgs

The event data containing the item information.

OnItemMouseDoubleClick(ListViewItemEventArgs)

Raises the ItemMouseDoubleClick event when an item is double-clicked.

Declaration

cs-api-definition
protected virtual void OnItemMouseDoubleClick(ListViewItemEventArgs args)

Parameters

args

ListViewItemEventArgs

The event data containing the item information.

OnItemMouseDown(ListViewItemMouseEventArgs)

Raises the ItemMouseDown event when a mouse button is pressed over an item.

Declaration

cs-api-definition
protected virtual void OnItemMouseDown(ListViewItemMouseEventArgs args)

Parameters

args

ListViewItemMouseEventArgs

The event data containing the item and mouse information.

OnItemMouseEnter(ListViewItemEventArgs)

Raises the ItemMouseEnter event when the mouse pointer enters an item.

Declaration

cs-api-definition
protected virtual void OnItemMouseEnter(ListViewItemEventArgs args)

Parameters

args

ListViewItemEventArgs

The event data containing the item information.

OnItemMouseHover(ListViewItemEventArgs)

Raises the ItemMouseHover event when the mouse pointer hovers over an item.

Declaration

cs-api-definition
protected virtual void OnItemMouseHover(ListViewItemEventArgs args)

Parameters

args

ListViewItemEventArgs

The event data containing the item information.

OnItemMouseLeave(ListViewItemEventArgs)

Raises the ItemMouseLeave event when the mouse pointer leaves an item.

Declaration

cs-api-definition
protected virtual void OnItemMouseLeave(ListViewItemEventArgs args)

Parameters

args

ListViewItemEventArgs

The event data containing the item information.

OnItemMouseMove(ListViewItemMouseEventArgs)

Raises the ItemMouseMove event when the mouse pointer moves over an item.

Declaration

cs-api-definition
protected virtual void OnItemMouseMove(ListViewItemMouseEventArgs args)

Parameters

args

ListViewItemMouseEventArgs

The event data containing the item and mouse information.

OnItemMouseUp(ListViewItemMouseEventArgs)

Raises the ItemMouseUp event when a mouse button is released over an item.

Declaration

cs-api-definition
protected virtual void OnItemMouseUp(ListViewItemMouseEventArgs args)

Parameters

args

ListViewItemMouseEventArgs

The event data containing the item and mouse information.

OnItemRemoved(ListViewItemEventArgs)

Raises the ItemRemoved event when an item has been removed.

Declaration

cs-api-definition
protected virtual void OnItemRemoved(ListViewItemEventArgs args)

Parameters

args

ListViewItemEventArgs

The event data containing the removed item information.

OnItemRemoving(ListViewItemCancelEventArgs)

Raises the ItemRemoving event and allows cancellation of the item removal.

Declaration

cs-api-definition
protected virtual bool OnItemRemoving(ListViewItemCancelEventArgs args)

Parameters

args

ListViewItemCancelEventArgs

The event data containing the item removal information.

Returns

bool

Returns true if the operation was cancelled; otherwise, false.

OnSelectedIndexChanged()

Raises the SelectedIndexChanged event when the selected item index changes.

Declaration

cs-api-definition
protected virtual void OnSelectedIndexChanged()

OnSelectedItemChanged(ListViewDataItem)

Raises the SelectedItemChanged event when the selected item changes.

Declaration

cs-api-definition
protected virtual void OnSelectedItemChanged(ListViewDataItem item)

Parameters

item

ListViewDataItem

The newly selected ListViewDataItem.

OnSelectedItemChanging(ListViewItemCancelEventArgs)

Raises the SelectedItemChanging event and allows cancellation of the item selection.

Declaration

cs-api-definition
protected virtual bool OnSelectedItemChanging(ListViewItemCancelEventArgs args)

Parameters

args

ListViewItemCancelEventArgs

The event data containing the item selection information.

Returns

bool

Returns true if the operation was cancelled; otherwise, false.

OnSelectedItemsChanged()

Raises the SelectedItemsChanged event when the selected items collection changes.

Declaration

cs-api-definition
protected virtual void OnSelectedItemsChanged()

OnStyleChanged(RadPropertyChangedEventArgs)

Declaration

cs-api-definition
protected override void OnStyleChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

Overrides RadElement.OnStyleChanged(RadPropertyChangedEventArgs)

OnValidationError(EventArgs)

Raises the ValidationError event when a validation error occurs.

Declaration

cs-api-definition
protected virtual void OnValidationError(EventArgs args)

Parameters

args

EventArgs

The event data for the validation error.

OnValueChanged(ListViewItemValueChangedEventArgs)

Raises the ItemValueChanged event when an item's value has changed.

Declaration

cs-api-definition
protected virtual void OnValueChanged(ListViewItemValueChangedEventArgs args)

Parameters

args

ListViewItemValueChangedEventArgs

The event data containing the value change information.

OnValueChanging(ListViewItemValueChangingEventArgs)

Raises the ItemValueChanging event and allows cancellation of the value change.

Declaration

cs-api-definition
protected virtual bool OnValueChanging(ListViewItemValueChangingEventArgs args)

Parameters

args

ListViewItemValueChangingEventArgs

The event data containing the value change information.

Returns

bool

Returns true if the operation was cancelled; otherwise, false.

OnValueValidating(ListViewItemValidatingEventArgs)

Raises the ItemValidating event when an item value needs to be validated.

Declaration

cs-api-definition
protected virtual void OnValueValidating(ListViewItemValidatingEventArgs args)

Parameters

args

ListViewItemValidatingEventArgs

The event data containing the validation information.

OnViewTypeChanged()

Raises the ViewTypeChanged event when the view type has changed.

Declaration

cs-api-definition
protected virtual void OnViewTypeChanged()

OnViewTypeChanging(ViewTypeChangingEventArgs)

Raises the ViewTypeChanging event and allows cancellation of the view type change.

Declaration

cs-api-definition
protected virtual bool OnViewTypeChanging(ViewTypeChangingEventArgs args)

Parameters

args

ViewTypeChangingEventArgs

The event data containing the view type change information.

Returns

bool

Returns true if the operation was cancelled; otherwise, false.

OnVisualItemCreating(ListViewVisualItemCreatingEventArgs)

Raises the VisualItemCreating event when a visual item needs to be created.

Declaration

cs-api-definition
protected virtual void OnVisualItemCreating(ListViewVisualItemCreatingEventArgs args)

Parameters

args

ListViewVisualItemCreatingEventArgs

The event data containing the visual item creation information.

OnVisualItemFormatting(BaseListViewVisualItem)

Raises the VisualItemFormatting event when a visual item needs formatting.

Declaration

cs-api-definition
protected virtual void OnVisualItemFormatting(BaseListViewVisualItem item)

Parameters

item

BaseListViewVisualItem

The BaseListViewVisualItem that needs formatting.

ProcessKeyDown(KeyEventArgs)

Processes key down events for keyboard navigation and interaction within the list view.

Declaration

cs-api-definition
public virtual bool ProcessKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

The key event data containing information about the key pressed and modifier keys.

Returns

bool

True if the event was handled by the list view; otherwise, false.

ProcessKeyPress(KeyPressEventArgs)

Processes key press events for character input and keyboard search functionality.

Declaration

cs-api-definition
public virtual bool ProcessKeyPress(KeyPressEventArgs e)

Parameters

e

KeyPressEventArgs

The key press event data containing information about the character typed.

Returns

bool

True if the event was handled by the list view; otherwise, false.

ProcessMouseDown(MouseEventArgs)

Processes mouse down events when a mouse button is pressed over the list view.

Declaration

cs-api-definition
public virtual bool ProcessMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event data containing information about the button pressed and cursor position.

Returns

bool

True if the event was handled by the list view; otherwise, false.

ProcessMouseMove(MouseEventArgs)

Processes mouse move events when the mouse pointer moves over the list view.

Declaration

cs-api-definition
public virtual bool ProcessMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event data containing information about the cursor position and movement.

Returns

bool

True if the event was handled by the list view; otherwise, false.

ProcessMouseUp(MouseEventArgs)

Processes mouse up events when the mouse button is released over the list view.

Declaration

cs-api-definition
public virtual bool ProcessMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event data containing information about the button released and cursor position.

Returns

bool

True if the event was handled by the list view; otherwise, false.

ProcessMouseWheel(MouseEventArgs)

Processes mouse wheel events for scrolling the list view content.

Declaration

cs-api-definition
public virtual bool ProcessMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event data containing information about the wheel movement and direction.

Returns

bool

True if the event was handled by the list view; otherwise, false.

ResetCurrentItem()

Resets the current item to null and clears the current state from the previously current item.

Declaration

cs-api-definition
public void ResetCurrentItem()

Remarks

This method is used internally to clear the current item state without triggering change events. It ensures proper cleanup of the current item's visual state.

SaveEditorValue(BaseListViewVisualItem, object)

Saves the edited value to the appropriate item property with validation.

Declaration

cs-api-definition
protected virtual void SaveEditorValue(BaseListViewVisualItem visualItem, object newValue)

Parameters

visualItem

BaseListViewVisualItem

The visual item that was edited.

newValue

object

The new value from the editor.

Remarks

This method performs validation of the new value and converts empty strings to null. If validation fails, a validation error event is raised and the value is not saved. The method handles the different save paths for Details View and other view types.

ScrollTo(int)

Scrolls the view by the specified amount in pixels.

Declaration

cs-api-definition
public void ScrollTo(int delta)

Parameters

delta

int

The amount to scroll in pixels. Positive values scroll down, negative values scroll up.

Select(ListViewDataItem[])

Selects the specified array of items in the list view.

Declaration

cs-api-definition
public void Select(ListViewDataItem[] items)

Parameters

items

ListViewDataItem[]

An array of ListViewDataItem objects to select.

Remarks

If MultiSelect is disabled, only the last item in the array will be selected. If MultiSelect is enabled, all items in the array will be selected. The method automatically handles the selection state management and event notifications.

SetSelectedItemValue(ListViewItemValueChangingEventArgs, object)

Sets the value on the selected item, handling the differences between view types.

Declaration

cs-api-definition
protected virtual void SetSelectedItemValue(ListViewItemValueChangingEventArgs valueChangingArgs, object newValue)

Parameters

valueChangingArgs

ListViewItemValueChangingEventArgs

The event arguments for the value change operation.

newValue

object

The new value to set on the item.

Remarks

In Details View, the value is set on the specific column of the item. In other view types, the value is set on the item's main Value property. The method ensures that appropriate change events are raised during the operation.

SynchronizeVisualItems()

Synchronizes the visual representation of items with their underlying data state.

Declaration

cs-api-definition
public virtual void SynchronizeVisualItems()

Remarks

This method ensures that all visual items reflect the current state of their corresponding data items. It iterates through all visual children and calls their Synchronize method to update their appearance based on current data, selection state, and other properties.

UncheckAllItems()

Unchecks all of the items.

Declaration

cs-api-definition
public void UncheckAllItems()

Remarks

This method is only effective when ShowCheckBoxes is enabled. It provides a convenient way to uncheck all items in the list view regardless of their selection state.

UncheckSelectedItems()

Unchecks all of the selected items.

Declaration

cs-api-definition
public void UncheckSelectedItems()

Remarks

This method is only effective when ShowCheckBoxes is enabled. It provides a convenient way to uncheck all selected items in a single operation.

UnwireEvents()

Unsubscribes from all collection and view events to prevent memory leaks during disposal.

Declaration

cs-api-definition
protected virtual void UnwireEvents()

Remarks

This method removes all event handlers that were established in WireEvents() to ensure proper cleanup and prevent potential memory leaks when the element is being disposed.

Update(UpdateModes)

Triggers various update operations on the list view based on the specified update mode flags.

Declaration

cs-api-definition
public virtual void Update(RadListViewElement.UpdateModes updateMode)

Parameters

updateMode

RadListViewElement.UpdateModes

A combination of RadListViewElement.UpdateModes flags indicating which operations to perform.

Remarks

This method allows fine-grained control over what aspects of the list view should be updated. Multiple update modes can be combined using bitwise OR operations to perform multiple updates in a single call for optimal performance.

UpdateCheckedItems()

Updates the contents of the CheckedItems collection.

Declaration

cs-api-definition
public void UpdateCheckedItems()

Remarks

This method rebuilds the checked items collection by examining the check state of every item in the list view. It should be called when the check states may have been modified outside of the normal checkbox interaction mechanisms.

WireEvents()

Subscribes to the necessary collection and view events for proper data synchronization.

Declaration

cs-api-definition
protected virtual void WireEvents()

Remarks

This method establishes event handlers for groups, columns, filter descriptors, sort descriptors, and collection view changes. These handlers ensure that the UI stays synchronized with data changes.

Events

BindingCompleted

Occurs when the data binding process for the RadListViewElement has completed successfully.

Declaration

cs-api-definition
public event EventHandler BindingCompleted

Event Value

EventHandler

BindingContextChanged

Occurs when the BindingContext property value changes.

Declaration

cs-api-definition
public event EventHandler BindingContextChanged

Event Value

EventHandler

Implements IDataItemSource.BindingContextChanged

CellCreating

Occurs when a DetailListViewCellElement needs to be created for Details View.

Declaration

cs-api-definition
public event ListViewCellElementCreatingEventHandler CellCreating

Event Value

ListViewCellElementCreatingEventHandler

CellFormatting

Occurs when a cell in Details View needs to be formatted.

Declaration

cs-api-definition
public event ListViewCellFormattingEventHandler CellFormatting

Event Value

ListViewCellFormattingEventHandler

ColumnCreating

Occurs when a ListViewDetailColumn needs to be created during data binding.

Declaration

cs-api-definition
public event ListViewColumnCreatingEventHandler ColumnCreating

Event Value

ListViewColumnCreatingEventHandler

CurrentItemChanged

Occurs when the CurrentItem property has changed.

Declaration

cs-api-definition
public event ListViewItemEventHandler CurrentItemChanged

Event Value

ListViewItemEventHandler

CurrentItemChanging

Occurs when the CurrentItem property is about to change and allows cancellation of the operation.

Declaration

cs-api-definition
public event ListViewItemChangingEventHandler CurrentItemChanging

Event Value

ListViewItemChangingEventHandler

EditorInitialized

Occurs when an editor has been initialized for editing an item.

Declaration

cs-api-definition
public event ListViewItemEditorInitializedEventHandler EditorInitialized

Event Value

ListViewItemEditorInitializedEventHandler

EditorRequired

Occurs when an editor is required for editing a list view item.

Declaration

cs-api-definition
public event ListViewItemEditorRequiredEventHandler EditorRequired

Event Value

ListViewItemEditorRequiredEventHandler

GroupExpanded

Occurs when a group has been expanded in the list view.

Declaration

cs-api-definition
public event EventHandler<ListViewGroupEventArgs> GroupExpanded

Event Value

EventHandler<ListViewGroupEventArgs>

GroupExpanding

Occurs when a group is about to expand and allows cancellation of the operation.

Declaration

cs-api-definition
public event EventHandler<ListViewGroupCancelEventArgs> GroupExpanding

Event Value

EventHandler<ListViewGroupCancelEventArgs>

ItemCheckedChanged

Occurs when the checked state of a ListViewDataItem has changed.

Declaration

cs-api-definition
public event ListViewItemEventHandler ItemCheckedChanged

Event Value

ListViewItemEventHandler

ItemCheckedChanging

Occurs when a ListViewDataItem is about to be checked and allows cancellation of the operation.

Declaration

cs-api-definition
public event ListViewItemCancelEventHandler ItemCheckedChanging

Event Value

ListViewItemCancelEventHandler

ItemCreating

Occurs when a ListViewDataItem needs to be created during data binding or item creation.

Declaration

cs-api-definition
public event ListViewItemCreatingEventHandler ItemCreating

Event Value

ListViewItemCreatingEventHandler

ItemDataBound

Occurs when a data-bound item is being attached to a ListViewDataItem.

Declaration

cs-api-definition
public event ListViewItemEventHandler ItemDataBound

Event Value

ListViewItemEventHandler

ItemEdited

Occurs when a ListViewDataItem has been edited and the edit operation is complete.

Declaration

cs-api-definition
public event ListViewItemEditedEventHandler ItemEdited

Event Value

ListViewItemEditedEventHandler

ItemEditing

Occurs when an edit operation is about to begin and allows cancellation of the operation.

Declaration

cs-api-definition
public event ListViewItemEditingEventHandler ItemEditing

Event Value

ListViewItemEditingEventHandler

ItemMouseClick

Occurs when the user clicks a ListViewDataItem.

Declaration

cs-api-definition
public event ListViewItemEventHandler ItemMouseClick

Event Value

ListViewItemEventHandler

ItemMouseDoubleClick

Occurs when the user double-clicks a ListViewDataItem.

Declaration

cs-api-definition
public event ListViewItemEventHandler ItemMouseDoubleClick

Event Value

ListViewItemEventHandler

ItemMouseDown

Occurs when the user presses a mouse button over a ListViewDataItem.

Declaration

cs-api-definition
public event ListViewItemMouseEventHandler ItemMouseDown

Event Value

ListViewItemMouseEventHandler

ItemMouseEnter

Occurs when the mouse pointer enters the bounds of a ListViewDataItem.

Declaration

cs-api-definition
public event ListViewItemEventHandler ItemMouseEnter

Event Value

ListViewItemEventHandler

ItemMouseHover

Occurs when the user hovers the mouse pointer over a ListViewDataItem.

Declaration

cs-api-definition
public event ListViewItemEventHandler ItemMouseHover

Event Value

ListViewItemEventHandler

ItemMouseLeave

Occurs when the mouse pointer leaves the bounds of a ListViewDataItem.

Declaration

cs-api-definition
public event ListViewItemEventHandler ItemMouseLeave

Event Value

ListViewItemEventHandler

ItemMouseMove

Occurs when the user moves the mouse pointer over a ListViewDataItem.

Declaration

cs-api-definition
public event ListViewItemMouseEventHandler ItemMouseMove

Event Value

ListViewItemMouseEventHandler

ItemMouseUp

Occurs when the user releases a mouse button over a ListViewDataItem.

Declaration

cs-api-definition
public event ListViewItemMouseEventHandler ItemMouseUp

Event Value

ListViewItemMouseEventHandler

ItemRemoved

Occurs when an item has been removed using the Delete key.

Declaration

cs-api-definition
public event ListViewItemEventHandler ItemRemoved

Event Value

ListViewItemEventHandler

ItemRemoving

Occurs when an item is about to be removed using the Delete key and allows cancellation of the operation.

Declaration

cs-api-definition
public event ListViewItemCancelEventHandler ItemRemoving

Event Value

ListViewItemCancelEventHandler

ItemValidating

Occurs when an edit operation needs to be validated before the changes are committed.

Declaration

cs-api-definition
public event ListViewItemValidatingEventHandler ItemValidating

Event Value

ListViewItemValidatingEventHandler

ItemValueChanged

Occurs when the value of a ListViewDataItem has changed.

Declaration

cs-api-definition
public event ListViewItemValueChangedEventHandler ItemValueChanged

Event Value

ListViewItemValueChangedEventHandler

ItemValueChanging

Occurs when the value of a ListViewDataItem is about to change and allows cancellation of the operation.

Declaration

cs-api-definition
public event ListViewItemValueChangingEventHandler ItemValueChanging

Event Value

ListViewItemValueChangingEventHandler

SelectedIndexChanged

Occurs when the index of the selected item has changed.

Declaration

cs-api-definition
public event EventHandler SelectedIndexChanged

Event Value

EventHandler

SelectedItemChanged

Occurs when the selected item has changed in the list view.

Declaration

cs-api-definition
public event EventHandler SelectedItemChanged

Event Value

EventHandler

SelectedItemChanging

Occurs when a ListViewDataItem is about to be selected and allows cancellation of the operation.

Declaration

cs-api-definition
public event ListViewItemCancelEventHandler SelectedItemChanging

Event Value

ListViewItemCancelEventHandler

SelectedItemsChanged

Occurs when the content of the SelectedItems collection has changed.

Declaration

cs-api-definition
public event EventHandler SelectedItemsChanged

Event Value

EventHandler

ValidationError

Occurs when a validation error occurs during item editing.

Declaration

cs-api-definition
public event EventHandler ValidationError

Event Value

EventHandler

ViewTypeChanged

Occurs when the ViewType of the RadListView has changed.

Declaration

cs-api-definition
public event EventHandler ViewTypeChanged

Event Value

EventHandler

ViewTypeChanging

Occurs when the ViewType of the RadListView is about to change and allows cancellation of the operation.

Declaration

cs-api-definition
public event ViewTypeChangingEventHandler ViewTypeChanging

Event Value

ViewTypeChangingEventHandler

VisualItemCreating

Occurs when a BaseListViewVisualItem needs to be created for visual representation.

Declaration

cs-api-definition
public event ListViewVisualItemCreatingEventHandler VisualItemCreating

Event Value

ListViewVisualItemCreatingEventHandler

VisualItemFormatting

Occurs when a ListViewDataItem changes its state and needs to be formatted.

Declaration

cs-api-definition
public event ListViewVisualItemEventHandler VisualItemFormatting

Event Value

ListViewVisualItemEventHandler

In this article
DefinitionConstructorsRadListViewElement()FieldscachedOldValuePropertiesActiveEditorAllowArbitraryItemHeightAllowArbitraryItemWidthAllowColumnReorderAllowColumnResizeAllowDragDropAllowEditAllowRemoveAutoSizeColumnsModeBindingContextCaseSensitiveColumnNamesCheckBoxesAlignmentCheckBoxesPositionCheckOnClickModeCheckedItemsCheckedMemberColumnResizingBehaviorColumnsCurrentColumnCurrentItemDataMemberDataSourceDataViewDisplayMemberDragDropServiceEnableColumnSortEnableCustomGroupingEnableFilteringEnableGroupingEnableKineticScrollingEnableLassoSelectionEnableSortingFilterDescriptorsFullRowSelectGroupDescriptorsGroupIndentGroupItemSizeGroupsHeaderHeightHorizontalScrollStateHotTrackingIsDataBoundIsEditingItemSizeItemSpacingItemsKeyboardSearchEnabledKeyboardSearchResetIntervalListSourceMultiSelectSelectLastAddedItemSelectedIndexSelectedItemSelectedItemsSelectionRectangleBorderColorSelectionRectangleColorShowCheckBoxesShowColumnHeadersShowGridLinesShowGroupsSortDescriptorsThreeStateModeValueMemberVerticalScrollStateViewElementViewTypeMethodsBeginEdit()BeginUpdate()BestFitColumns(ListViewBestFitColumnMode)BindingComplete()CancelEdit()CheckAllItems()CheckSelectedItems()CollapseAll()CreateBindingContext()CreateChildElements()CreateViewElement()DisposeManagedResources()EndEdit()EndEditCore(bool)EndUpdate()EnsureColumnVisible(ListViewDetailColumn)EnsureItemVisible(ListViewDataItem)EnsureItemVisible(ListViewDataItem, bool)ExpandAll()FindItemByKey(object)FindItemByKey(object, bool)GetEditor(Type)Initialize()InitializeEditor(BaseListViewVisualItem, ISupportInitialize, IInputEditor)MeasureOverride(SizeF)NewItem()OnBindingContextChanged(EventArgs)OnCellCreating(ListViewCellElementCreatingEventArgs)OnCellFormatting(ListViewCellFormattingEventArgs)OnColumnCreating(ListViewColumnCreatingEventArgs)OnCurrentItemChanged(ListViewItemEventArgs)OnCurrentItemChanging(ListViewItemChangingEventArgs)OnDataItemCreating(ListViewItemCreatingEventArgs)OnEdited(ListViewItemEditedEventArgs)OnEditing(ListViewItemEditingEventArgs)OnEditorInitialized(ListViewItemEditorInitializedEventArgs)OnEditorRequired(ListViewItemEditorRequiredEventArgs)OnItemCheckedChanged(ListViewItemEventArgs)OnItemCheckedChanging(ListViewItemCancelEventArgs)OnItemDataBound(ListViewDataItem)OnItemMouseClick(ListViewItemEventArgs)OnItemMouseDoubleClick(ListViewItemEventArgs)OnItemMouseDown(ListViewItemMouseEventArgs)OnItemMouseEnter(ListViewItemEventArgs)OnItemMouseHover(ListViewItemEventArgs)OnItemMouseLeave(ListViewItemEventArgs)OnItemMouseMove(ListViewItemMouseEventArgs)OnItemMouseUp(ListViewItemMouseEventArgs)OnItemRemoved(ListViewItemEventArgs)OnItemRemoving(ListViewItemCancelEventArgs)OnSelectedIndexChanged()OnSelectedItemChanged(ListViewDataItem)OnSelectedItemChanging(ListViewItemCancelEventArgs)OnSelectedItemsChanged()OnStyleChanged(RadPropertyChangedEventArgs)OnValidationError(EventArgs)OnValueChanged(ListViewItemValueChangedEventArgs)OnValueChanging(ListViewItemValueChangingEventArgs)OnValueValidating(ListViewItemValidatingEventArgs)OnViewTypeChanged()OnViewTypeChanging(ViewTypeChangingEventArgs)OnVisualItemCreating(ListViewVisualItemCreatingEventArgs)OnVisualItemFormatting(BaseListViewVisualItem)ProcessKeyDown(KeyEventArgs)ProcessKeyPress(KeyPressEventArgs)ProcessMouseDown(MouseEventArgs)ProcessMouseMove(MouseEventArgs)ProcessMouseUp(MouseEventArgs)ProcessMouseWheel(MouseEventArgs)ResetCurrentItem()SaveEditorValue(BaseListViewVisualItem, object)ScrollTo(int)Select(ListViewDataItem[])SetSelectedItemValue(ListViewItemValueChangingEventArgs, object)SynchronizeVisualItems()UncheckAllItems()UncheckSelectedItems()UnwireEvents()Update(UpdateModes)UpdateCheckedItems()WireEvents()EventsBindingCompletedBindingContextChangedCellCreatingCellFormattingColumnCreatingCurrentItemChangedCurrentItemChangingEditorInitializedEditorRequiredGroupExpandedGroupExpandingItemCheckedChangedItemCheckedChangingItemCreatingItemDataBoundItemEditedItemEditingItemMouseClickItemMouseDoubleClickItemMouseDownItemMouseEnterItemMouseHoverItemMouseLeaveItemMouseMoveItemMouseUpItemRemovedItemRemovingItemValidatingItemValueChangedItemValueChangingSelectedIndexChangedSelectedItemChangedSelectedItemChangingSelectedItemsChangedValidationErrorViewTypeChangedViewTypeChangingVisualItemCreatingVisualItemFormatting
Not finding the help you need?
Contact Support