ClassColumnChooserItem
Represents a column header in the column chooser form
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class ColumnChooserItem : ColumnChooserVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGridVisualElementColumnChooserVisualElementColumnChooserItem
Implements:
Inherited Members
Constructors
ColumnChooserItem()
Initializes a new instance of the ColumnChooserItem class.
Declaration
public ColumnChooserItem()
ColumnChooserItem(GridViewColumn, IRadServiceProvider)
Initializes a new instance of the ColumnChooserItem class.
Declaration
public ColumnChooserItem(GridViewColumn column, IRadServiceProvider serviceProvider)
Parameters
column
An instance to GridViewDataColumn
serviceProvider
ColumnChooserItem(GridViewColumnGroup, IRadServiceProvider)
Initializes a new instance of the ColumnChooserItem class.
Declaration
public ColumnChooserItem(GridViewColumnGroup group, IRadServiceProvider serviceProvider)
Parameters
group
The group.
serviceProvider
The service provider.
Properties
Arrow
Gets the ArrowPrimitive indicating the SortOrder of the column.
Checkmark
Gets the RadCheckmark indicating the visibility of the ColumnInfo.
Declaration
public RadCheckmark Checkmark { get; }
Property Value
RadCheckmark
ColumnInfo
The GridViewDataColumn associated with this item.
Declaration
public GridViewColumn ColumnInfo { get; }
Property Value
StackElement
Gets the main layout element. It is used to host and layout the Checkmark, TextElement and Arrow.
Declaration
public StackLayoutElement StackElement { get; }
Property Value
TextElement
Gets the visual element that displays the text.
Declaration
public LightVisualElement TextElement { get; }
Property Value
Methods
CreateArrowPrimitive()
Declaration
protected virtual ArrowPrimitive CreateArrowPrimitive()
Returns
CreateCheckmark()
Declaration
protected virtual RadCheckmark CreateCheckmark()
Returns
RadCheckmark
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateStackElement()
Declaration
protected virtual ColumnChooserItemStack CreateStackElement()
Returns
CreateTextElement()
Declaration
protected virtual LightVisualElement CreateTextElement()
Returns
DisposeManagedResources()
Disposes the managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
GetDragContextCore()
Gets the context, associated with a drag operation.
Declaration
protected override object GetDragContextCore()
Returns
Overrides
GetDragHintCore()
Gets the image to be used as a hint when this element is being dragged.
InitializeFields()
Initializes the fields.
Declaration
protected override void InitializeFields()
Overrides
OnDoubleClick(EventArgs)
Raises the DoubleClick event.
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
e
Overrides
OnMouseDown(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnMouseUp(MouseEventArgs)
Called when a mouse button is released over the item.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnPanGesture(PanGestureEventArgs)
Fires the PanGesture event.
Declaration
protected override void OnPanGesture(PanGestureEventArgs args)
Parameters
args
The arguments for the PanGesture event.
Overrides
ProcessDragOver(Point, ISupportDrag)
Processes the drag over.
Declaration
protected override bool ProcessDragOver(Point currentMouseLocation, ISupportDrag dragObject)
Parameters
currentMouseLocation
The current mouse location.
dragObject
The drag object.
Returns
Overrides
UnwireEvents()
Unwires the events of the column.
Declaration
public void UnwireEvents()