Class GridTableFilterBarExtCellRenderer
Implements the renderer part of a TableFilterBar cell.
Inheritance
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class GridTableFilterBarExtCellRenderer : GridComboBoxCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
GridTableFilterBarExtCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the GridTableFilterBarExtCellRenderer class for the given GridControlBase and GridCellModelBase.
Declaration
public GridTableFilterBarExtCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The GridControlBase that displays this cell renderer. |
GridCellModelBase | cellModel | The GridTableFilterBarExtCellRenderer that holds data for this cell renderer that should be shared among views. |
Remarks
References to GridControlBase and GridCellModelBase will be saved.
Properties
Grid
Gets a reference to the parent grid.
Declaration
public GridTableControl Grid { get; }
Property Value
Type |
---|
GridTableControl |
Model
Gets a reference to the cell model.
Declaration
public GridTableFilterBarExtCellModel Model { get; }
Property Value
Type |
---|
GridTableFilterBarExtCellModel |
Methods
AttachComparerListBoxPart()
Attaches a list box part to this renderer object.
Declaration
protected void AttachComparerListBoxPart()
AttachOriginalListBoxPart()
Attaches a list box part to this renderer object.
Declaration
protected void AttachOriginalListBoxPart()
CanPaste()
Determines whether the current cell can be pasted from clipboard.
Declaration
public override bool CanPaste()
Returns
Type | Description |
---|---|
System.Boolean | True if it is allowed. |
Overrides
Dispose(Boolean)
Clean up the resources being used and unhook any events triggered in GridTableFilterBarExtCellRenderer.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
DropDownContainerShowingDropDown(Object, CancelEventArgs)
Occurs when the filter drop down is being shown.
Declaration
public override void DropDownContainerShowingDropDown(object sender, CancelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Cell renderer. |
System.ComponentModel.CancelEventArgs | e | The System.ComponentModel.CancelEventArgs that contains the event data. |
Overrides
GetFilterBarText(GridStyleInfo)
Determines the text from record filter criteria that should be displayed in filterbar cell.
Declaration
public string GetFilterBarText(GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | Cell style information. |
Returns
Type | Description |
---|---|
System.String | Filter bar text. |
ListBoxMouseUp(Object, MouseEventArgs)
Handles the System.Windows.Forms.Control.MouseUp event of the list box.
Declaration
protected override void ListBoxMouseUp(object sender, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs that contains the event data. |
Overrides
OnButtonClicked(Int32, Int32, Int32)
When the button is clicked.
Declaration
protected override void OnButtonClicked(int rowIndex, int colIndex, int button)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of the cell. |
System.Int32 | colIndex | Column index of the cell. |
System.Int32 | button | Index of the button in cell. |
Overrides
OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
It is triggered when the cell is drawn
Declaration
protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics of a cell. |
System.Drawing.Rectangle | clientRectangle | Cell rectangle. |
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | Cell style. |
Overrides
OnDrawCellButton(GridCellButton, Graphics, Int32, Int32, Boolean, GridStyleInfo)
Overridden to draw the filter image.
Declaration
protected override void OnDrawCellButton(GridCellButton button, Graphics g, int rowIndex, int colIndex, bool bActive, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridCellButton | button | Grid cell button. |
System.Drawing.Graphics | g | Graphics of a cell. |
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
System.Boolean | bActive | Indicates whether cell is in active state. |
GridStyleInfo | style | Cell style. |
Overrides
OnInitialize(Int32, Int32)
Is executed when the program starts executing
Declaration
protected override void OnInitialize(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
Overrides
OnKeyDown(KeyEventArgs)
Is triggered when the key is pressed in keyboard
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.KeyEventArgs | e | The System.Windows.Forms.KeyPressEventArgs that contains the event data. |
Overrides
OnKeyPress(KeyPressEventArgs)
Is triggered when the key is pressed down.
Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.KeyPressEventArgs | e | The System.Windows.Forms.KeyPressEventArgs that contains the event data. |
Overrides
OnKeyUp(KeyEventArgs)
Is triggered when the key is released in keyboard
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.KeyEventArgs | e | The System.Windows.Forms.KeyPressEventArgs that contains the event data. |
Overrides
OnLayout(Int32, Int32, GridStyleInfo, Rectangle, Rectangle[])
Obtains the layout for grid.
Declaration
protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | The cell style. |
System.Drawing.Rectangle | innerBounds | The cell bounds. |
System.Drawing.Rectangle[] | buttonsBounds | Button bounds/ |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | A Rectangle of a cell. |
Overrides
OnMouseHoverEnter(Int32, Int32)
Is triggered when the mouse enters a particular area.
Declaration
protected override void OnMouseHoverEnter(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
Overrides
OnMouseHoverLeave(Int32, Int32, EventArgs)
Is triggered when the mouse leaves a particular area.
Declaration
protected override void OnMouseHoverLeave(int rowIndex, int colIndex, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
System.EventArgs | e | The System.EventArgs that contains the event data. |
Overrides
OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs)
Occurs when OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs) event is called for this cell.
Declaration
public override void OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridPrepareViewStyleInfoEventArgs | e | The GridPrepareViewStyleInfoEventArgs that contains the event data. |
Overrides
OnShowDropDown()
Is triggered when the drop-down is shown
Declaration
protected override void OnShowDropDown()
Overrides
ProcessKeyEventArgs(ref Message)
Overridden to raise the Enter key and other key stroke events.
Declaration
protected override bool ProcessKeyEventArgs(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m | A Message. |
Returns
Type | Description |
---|---|
System.Boolean | True If it is processed. Otherwise false. |
Overrides
SetLogicalCompareOperatorImage(Object, String)
Sets a default compare operator image in FilterButton explicitly.
Declaration
public void SetLogicalCompareOperatorImage(object key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | Unique ColumnGroupId. |
System.String | value | Logical operator to be used for comparison. |
UnwireModel(GridCellModelBase)
Wires the grid model with the filter
Declaration
protected override void UnwireModel(GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridCellModelBase | cellModel | The GridCellModelBase . |
Overrides
WireModel(GridCellModelBase)
Wires the grid model to filter
Declaration
protected override void WireModel(GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridCellModelBase | cellModel | The GridCellModelBase. |