ClassColumnChooserControl
Displays a list with column chooser items, associated with columns.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class ColumnChooserControl : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlColumnChooserControl
Implements:
Inherited Members
Constructors
ColumnChooserControl()
Initializes a new instance of the ColumnChooserControl class.
Declaration
public ColumnChooserControl()
ColumnChooserControl(RadGridViewElement)
Creates a new instance of the ColumnChooserForm class.
Declaration
public ColumnChooserControl(RadGridViewElement rootElement)
Parameters
rootElement
An instance of the RadGridViewElement.
Properties
ColumnChooserElement
Gets the column chooser element.
Declaration
public ColumnChooserElement ColumnChooserElement { get; }
Property Value
The column chooser element.
Columns
Gets a generic list containing all GridViewDataColumn objects available in the form.
Declaration
public IList<GridViewColumn> Columns { get; }
Property Value
IList<GridViewColumn>
ColumnsDisplayMode
Gets or sets the mode that defines which columns are displayed in the column chooser.
Declaration
public ColumnChooserColumnsDisplayMode ColumnsDisplayMode { get; set; }
Property Value
EnableFiltering
Gets or sets a value indicating whether the filter text box is visible.
FilterTextBox
Gets the filter text box of this column chooser
Declaration
public RadTextBoxElement FilterTextBox { get; }
Property Value
GridViewElement
Gets or sets the grid view element.
Declaration
public RadGridViewElement GridViewElement { get; set; }
Property Value
The grid view element.
ViewTemplate
Gets the GridViewTemplate used in the form.
Declaration
public GridViewTemplate ViewTemplate { get; set; }
Property Value
Methods
ControlDefinesThemeForElement(RadElement)
Returns a boolean value indicating whether the control defines the theme for the element.
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
element
The element.
Returns
Overrides
CreateChildItems(RadElement)
Creates a new instance of the ColumnChooserForm class.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
Overrides
OnLoad(Size)
Notifies that the control is about to be visualized.
Declaration
protected override void OnLoad(Size desiredSize)
Parameters
desiredSize
Overrides
OnMouseWheel(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
ScaleControl(SizeF, BoundsSpecified)
Scales the control with the specified factor.
Declaration
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters
factor
specified
Overrides
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 Value