Class GridFilterCellElement
Represents a filter cell in RadGridView
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridFilterCellElement : GridDataCellElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider, IVirtualizedElement<GridViewColumn>, IEditableCell, IDataConversionInfoProvider, ITypeDescriptorContext, IServiceProvider
Constructors
GridFilterCellElement(GridViewDataColumn, GridRowElement)
Initializes a new instance of the Grid
Declaration
public GridFilterCellElement(GridViewDataColumn column, GridRowElement row)
Parameters
Grid
|
Grid
|
Fields
ElementSpacingProperty
IsFilterAppliedProperty
Properties
AutoFilterDelay
Gets the value in Milliseconds indicating delay between last key press and filtering operation."
Declaration
protected virtual int AutoFilterDelay { get; }
Property Value
System.
|
Descriptor
Gets or sets the filter descriptor associated with this cell
Declaration
protected FilterDescriptor Descriptor { get; }
Property Value
Filter The filter descriptor. |
ElementSpacing
Gets or sets the spacing between elements in filter cell
Declaration
public int ElementSpacing { get; set; }
Property Value
System.
|
FilterButton
Gets the filter button for the cell.
Declaration
public RadButtonElement FilterButton { get; }
Property Value
FilteringRowInfo
Gets the filtering row info.
Declaration
protected GridViewFilteringRowInfo FilteringRowInfo { get; }
Property Value
Grid The filtering row info. |
FilterOperatorText
Gets the filter operator for the cell.
Declaration
public TextPrimitive FilterOperatorText { get; }
Property Value
IsEditable
Gets a value indicating whether this instance is editable.
Declaration
public override bool IsEditable { get; }
Property Value
System.
|
Overrides
IsFilterApplied
Gets whether a filter is applied.
Declaration
public bool IsFilterApplied { get; }
Property Value
System. The is filter applied. |
SupportsConditionalFormatting
Gets a value indicating whether [supports conditional formatting].
Declaration
public override bool SupportsConditionalFormatting { get; }
Property Value
System.
|
Overrides
Value
Get or set the filter cell value
Declaration
public override object Value { get; set; }
Property Value
System.
|
Overrides
Methods
AddEditor(IInputEditor)
Adds the editor.
Declaration
public override void AddEditor(IInputEditor editor)
Parameters
IInput The editor. |
Overrides
ArrangeEditorElement(RadElement, RectangleF, RectangleF)
Arranges the editor element.
Declaration
protected virtual void ArrangeEditorElement(RadElement element, RectangleF editorRect, RectangleF clientRect)
Parameters
Rad The element. |
System. The editor rect. |
System. The client rect. |
ArrangeOverride(SizeF)
Arranges the elements in the available size.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The final size. |
Returns
System.
|
Overrides
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateCompositeFilterForm()
Creates the composite filter form
Declaration
protected virtual BaseCompositeFilterDialog CreateCompositeFilterForm()
Returns
Base An instance of Composite |
CreateFilterMenu(Type)
Creates the filter menu.
Declaration
protected virtual RadDropDownMenu CreateFilterMenu(Type dataType)
Parameters
System. Type of the data. |
Returns
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
IsCompatible(GridViewColumn, Object)
Determines whether the specified cell is compatible with concrete column.
Declaration
public override bool IsCompatible(GridViewColumn data, object context)
Parameters
Grid The column. |
System. The context. |
Returns
System.
|
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.
OnCellFormatting(CellFormattingEventArgs)
Raises the Cell
Declaration
protected override void OnCellFormatting(CellFormattingEventArgs e)
Parameters
Cell The Cell |
Overrides
OnColumnPropertyChanged(RadPropertyChangedEventArgs)
Occurs when some column property changes its value.
Declaration
protected override void OnColumnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Rad An instance of RadPropertyChangedEventArgs |
Overrides
RemoveEditor(IInputEditor)
Removes the editor.
Declaration
public override void RemoveEditor(IInputEditor editor)
Parameters
IInput The editor. |
Overrides
RemoveFilterDescriptor()
Removes the filter descriptor.
Declaration
protected virtual bool RemoveFilterDescriptor()
Returns
System. [TRUE] if succeed, otherwise [FALSE] |
SetContent()
Sets the value of the cell.
Declaration
public override void SetContent()
Overrides
SetContentCore(Object)
Sets the actual text of the cell.
Declaration
protected override void SetContentCore(object value)
Parameters
System.
|
Overrides
SetFilterDescriptor(FilterDescriptor)
Sets the filter descriptor.
Declaration
protected virtual bool SetFilterDescriptor(FilterDescriptor descriptor)
Parameters
Filter The descriptor. |
Returns
System.
|
SetFilterOperator(FilterOperator)
Sets the filter operator.
Declaration
protected virtual bool SetFilterOperator(FilterOperator filterOperator)
Parameters
Filter The filter operator. |
Returns
System.
|
SetSelectedFilterOperatorText()
Sets the selected filter operator text.
Declaration
protected virtual void SetSelectedFilterOperatorText()
UpdateFilterButtonVisibility(Boolean)
Updates the filter button visibility.
Declaration
protected virtual void UpdateFilterButtonVisibility(bool enabled)
Parameters
System. if set to |
UpdateInfoCore()
Updates the visual state of the cell.
Declaration
protected override void UpdateInfoCore()
Overrides
UpdateItemsVisibility(Boolean)
Updates filter cell items visibility.
Declaration
protected virtual void UpdateItemsVisibility(bool enabled)
Parameters
System. if set to |
ValidateUserFilter(FilterDescriptor)
Validates a descriptor set by the user.
Declaration
public static bool ValidateUserFilter(FilterDescriptor descriptor)
Parameters
Filter the descriptor to validate. |
Returns
System. true if successful. |