Class ColumnChooserElement
This is a form containing the hidden columns in RadGridView
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class ColumnChooserElement : ColumnChooserVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IGridView, IGridViewEventListener
Constructors
ColumnChooserElement()
Initializes a new instance of the ColumnChooserElement class.
Declaration
public ColumnChooserElement()
Properties
Columns
Gets list of Grid
Declaration
public IList<GridViewColumn> Columns { get; }
Property Value
System.
|
ElementsHolder
Gets an instance of the Stack
Declaration
public StackLayoutElement ElementsHolder { get; }
Property Value
EnableFiltering
Gets or sets a value indicating whether the filter text box is visible.
Declaration
public bool EnableFiltering { get; set; }
Property Value
System.
|
FilterTextBox
Gets the filter text box of this column chooser element
Declaration
public RadTextBoxElement FilterTextBox { get; }
Property Value
GridViewElement
Gets or sets the GridVisualElement that owns this view.
Declaration
public RadGridViewElement GridViewElement { get; set; }
Property Value
Implements
ScrollViewer
Gets the scroll viewer.
Declaration
public RadScrollViewer ScrollViewer { get; }
Property Value
Rad The scroll viewer. |
SortOrder
Gets or sets the sort order of the columns.
Declaration
public RadSortOrder SortOrder { get; set; }
Property Value
Rad The sort order. |
ViewInfo
Gets the GridViewInfo that this view represents.
Declaration
public GridViewInfo ViewInfo { get; }
Property Value
Implements
ViewTemplate
Gets or sets the Grid
Declaration
public GridViewTemplate ViewTemplate { get; set; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the inner elements.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The final size. |
Returns
System.
|
Overrides
CompareColumns(GridViewColumn, GridViewColumn)
Compares the columns.
Declaration
protected virtual int CompareColumns(GridViewColumn x, GridViewColumn y)
Parameters
Grid The x column. |
Grid The y column. |
Returns
System.
|
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateFilterTextBox()
Creates the filter text box.
Declaration
protected virtual RadTextBoxElement CreateFilterTextBox()
Returns
Detach()
Uninitializes the associated instance of the Grid
Declaration
public void Detach()
Implements
DisposeManagedResources()
Disposes the managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
FilterTextBoxTextChanged(Object, EventArgs)
Fires when the filter text box's text is changed.
Declaration
protected virtual void FilterTextBoxTextChanged(object sender, EventArgs e)
Parameters
System. The sender. |
System. The System. |
Initialize(RadGridViewElement, GridViewInfo)
Initializes Column
Declaration
public void Initialize(RadGridViewElement gridViewElement, GridViewInfo viewInfo)
Parameters
Rad An instance of the Rad |
Grid
|
Implements
InitializeFields()
Initializes the fields.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the Rad
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The size that is available to the Rad |
Returns
System. The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnItemElementCreating(Object, ColumnChooserItemElementCreatingEventArgs)
Fires the Item
Declaration
protected virtual void OnItemElementCreating(object sender, ColumnChooserItemElementCreatingEventArgs e)
Parameters
System.
|
Column
|
PassesFilter(ColumnChooserItem, String)
Passeses the filter.
Declaration
protected virtual bool PassesFilter(ColumnChooserItem item, string filter)
Parameters
Column The item. |
System. The filter. |
Returns
System.
|
ProcessDragOver(Point, ISupportDrag)
Processes the drag over behavior.
Declaration
protected override bool ProcessDragOver(Point currentMouseLocation, ISupportDrag dragObject)
Parameters
System. The current mouse location. |
ISupport The drag object. |
Returns
System.
|
Overrides
UnwireEvents()
Declaration
protected virtual void UnwireEvents()
UpdateView()
Updates the child elements collection of the Column
Declaration
public void UpdateView()
Implements
WireEvents()
Declaration
protected virtual void WireEvents()
Events
ItemElementCreating
Occurs when a new item element is being created. The created item is then added to the Column chooser.
Declaration
public event ColumnChooserItemElementCreatingEventHandler ItemElementCreating
Event Type
Explicit Interface Implementations
IGridViewEventListener.AnalyzeQueue(List<GridViewEvent>)
Declaration
bool IGridViewEventListener.AnalyzeQueue(List<GridViewEvent> events)
Parameters
System.
|
Returns
System.
|
Implements
IGridViewEventListener.DesiredEvents
Declaration
GridEventType IGridViewEventListener.DesiredEvents { get; }
Returns
Implements
IGridViewEventListener.DesiredProcessMode
Declaration
GridEventProcessMode IGridViewEventListener.DesiredProcessMode { get; }
Returns
Implements
IGridViewEventListener.PostProcessEvent(GridViewEvent)
Declaration
GridViewEventResult IGridViewEventListener.PostProcessEvent(GridViewEvent eventData)
Parameters
Grid
|
Returns
Implements
IGridViewEventListener.PreProcessEvent(GridViewEvent)
Declaration
GridViewEventResult IGridViewEventListener.PreProcessEvent(GridViewEvent eventData)
Parameters
Grid
|
Returns
Implements
IGridViewEventListener.Priority
Declaration
EventListenerPriority IGridViewEventListener.Priority { get; }
Returns
Implements
IGridViewEventListener.ProcessEvent(GridViewEvent)
Declaration
GridViewEventResult IGridViewEventListener.ProcessEvent(GridViewEvent eventData)
Parameters
Grid
|