Class VirtualGridInputBehavior
Represents the virtual grid behavior that handles keyboard and mouse input.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class VirtualGridInputBehavior
Constructors
VirtualGridInputBehavior(RadVirtualGridElement)
Initializes a new instance of the VirtualGridInputBehavior class.
Declaration
public VirtualGridInputBehavior(RadVirtualGridElement gridElement)
Parameters
RadVirtualGridElement
gridElement
The grid element. |
Fields
beginEdit
Declaration
protected bool beginEdit
Field Value
System.Boolean
|
wasInEditMode
Declaration
protected bool wasInEditMode
Field Value
System.Boolean
|
Properties
GridElement
Gets the RadVirtualGridElement instance this behavior is assigned to.
Declaration
public RadVirtualGridElement GridElement { get; }
Property Value
RadVirtualGridElement
|
IsResizing
Gets a value indicating whether a resize operation is underway.
Declaration
public bool IsResizing { get; }
Property Value
System.Boolean
|
IsResizingColumn
Gets a value indicating whether a column resize operation is iunderway.
Declaration
public bool IsResizingColumn { get; }
Property Value
System.Boolean
|
IsResizingRow
Gets a value indicating whether a row resuze operations is underway.
Declaration
public bool IsResizingRow { get; }
Property Value
System.Boolean
|
IsSelecting
Gets a value indicating whether a selection operation is underway.
Declaration
public bool IsSelecting { get; }
Property Value
System.Boolean
|
Methods
GetFirstScrollableRow(VirtualGridTableElement)
Gets the first scrollable row.
Declaration
protected int GetFirstScrollableRow(VirtualGridTableElement tableElement)
Parameters
VirtualGridTableElement
tableElement
The table element. |
Returns
System.Int32
|
GetLastScrollableRow(VirtualGridTableElement)
Gets the last scrollable row.
Declaration
protected int GetLastScrollableRow(VirtualGridTableElement tableElement)
Parameters
VirtualGridTableElement
tableElement
The table element. |
Returns
System.Int32
|
HandleAddKey(KeyEventArgs)
Handles the Add key
Declaration
protected virtual bool HandleAddKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleAlphaNumericKey(KeyPressEventArgs)
Handles the alpha-numeric keys
Declaration
protected virtual bool HandleAlphaNumericKey(KeyPressEventArgs keys)
Parameters
System.Windows.Forms.KeyPressEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleDeleteKey(KeyEventArgs)
Handles the Delete key
Declaration
protected virtual bool HandleDeleteKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleDownKey(KeyEventArgs)
Handles the Down key
Declaration
protected virtual bool HandleDownKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleEndKey(KeyEventArgs)
Handles the End key
Declaration
protected virtual bool HandleEndKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleEnterKey(KeyEventArgs)
Handles the Enter key
Declaration
protected virtual bool HandleEnterKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleEscapeKey(KeyEventArgs)
Handles the Escape key
Declaration
protected virtual bool HandleEscapeKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleF2Key(KeyEventArgs)
Handles the F2 key
Declaration
protected virtual bool HandleF2Key(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleHomeKey(KeyEventArgs)
Handles the Home key
Declaration
protected virtual bool HandleHomeKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleInsertKey(KeyEventArgs)
Handles the Insert key
Declaration
protected virtual bool HandleInsertKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleKeyDown(KeyEventArgs)
Handles the key down.
Declaration
public virtual bool HandleKeyDown(KeyEventArgs args)
Parameters
System.Windows.Forms.KeyEventArgs
args
The System.Windows.Forms.KeyEventArgs instance containing the event data. |
Returns
System.Boolean
|
HandleKeyPress(KeyPressEventArgs)
Handles the key press.
Declaration
public virtual bool HandleKeyPress(KeyPressEventArgs args)
Parameters
System.Windows.Forms.KeyPressEventArgs
args
The System.Windows.Forms.KeyPressEventArgs instance containing the event data. |
Returns
System.Boolean
|
HandleKeyUp(KeyEventArgs)
Handles the key up.
Declaration
public virtual bool HandleKeyUp(KeyEventArgs args)
Parameters
System.Windows.Forms.KeyEventArgs
args
The System.Windows.Forms.KeyEventArgs instance containing the event data. |
Returns
System.Boolean
|
HandleLeftKey(KeyEventArgs)
Handles the Left key
Declaration
protected virtual bool HandleLeftKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleMouseDoubleClick(MouseEventArgs)
Handles the mouse double click.
Declaration
public virtual bool HandleMouseDoubleClick(MouseEventArgs args)
Parameters
System.Windows.Forms.MouseEventArgs
args
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
HandleMouseDown(MouseEventArgs)
Handles the mouse down.
Declaration
public virtual bool HandleMouseDown(MouseEventArgs args)
Parameters
System.Windows.Forms.MouseEventArgs
args
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
HandleMouseMove(MouseEventArgs)
Handles the mouse move.
Declaration
public virtual bool HandleMouseMove(MouseEventArgs args)
Parameters
System.Windows.Forms.MouseEventArgs
args
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
HandleMouseUp(MouseEventArgs)
Handles the mouse up.
Declaration
public virtual bool HandleMouseUp(MouseEventArgs args)
Parameters
System.Windows.Forms.MouseEventArgs
args
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
HandleMouseWheel(MouseEventArgs)
Handles the mouse wheel.
Declaration
public virtual bool HandleMouseWheel(MouseEventArgs args)
Parameters
System.Windows.Forms.MouseEventArgs
args
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
HandlePageDownKey(KeyEventArgs)
Handle the PageDown key
Declaration
protected virtual bool HandlePageDownKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandlePageUpKey(KeyEventArgs)
Handles the PageUp key
Declaration
protected virtual bool HandlePageUpKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleRightKey(KeyEventArgs)
Handles the Right key
Declaration
protected virtual bool HandleRightKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleSpaceKey(KeyEventArgs)
Handles the Space key
Declaration
protected virtual bool HandleSpaceKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleSubtractKey(KeyEventArgs)
Handles the Subtract key
Declaration
protected virtual bool HandleSubtractKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleTabKey(KeyEventArgs)
Handles the Tab key
Declaration
protected virtual bool HandleTabKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleUnhandledKeys(KeyEventArgs)
Processes keys that are not handled by HandleKeyDown methoes
Declaration
protected virtual bool HandleUnhandledKeys(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
HandleUpKey(KeyEventArgs)
Handles the Up key
Declaration
protected virtual bool HandleUpKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
SelectCell(Int32, Int32)
Selects the cell defined with the row and column parameters in the grid master view info. Clears previous selection.
Declaration
public void SelectCell(int row, int column)
Parameters
System.Int32
row
The row index. |
System.Int32
column
The column index. |
SelectCell(Int32, Int32, Boolean, Boolean, VirtualGridViewInfo)
Selects the cell defined with the row and column parameters in the provided view info. Extends or clears the previous selection based on the shift and ctrl parameters.
Declaration
public void SelectCell(int row, int column, bool shift, bool ctrl, VirtualGridViewInfo viewInfo)
Parameters
System.Int32
row
The row index. |
System.Int32
column
The column index. |
System.Boolean
shift
Determines if the selection should be extended as if the Shift key is pressed. |
System.Boolean
ctrl
Determines if the selection should be extended as if the Ctrl key is pressed. |
VirtualGridViewInfo
viewInfo
The view info. |
SelectCell(Int32, Int32, VirtualGridViewInfo)
Selects the cell defined with the row and column parameters in the provided view info. Clears previous selection.
Declaration
public void SelectCell(int row, int column, VirtualGridViewInfo viewInfo)
Parameters
System.Int32
row
The row index. |
System.Int32
column
The column index. |
VirtualGridViewInfo
viewInfo
The view info. |
SelectNextControl(Boolean)
Selects the next control.
Declaration
protected virtual bool SelectNextControl(bool forward)
Parameters
System.Boolean
forward
if set to |
Returns
System.Boolean
|