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