Class
VirtualGridInputBehavior

Represents the virtual grid behavior that handles keyboard and mouse input.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class VirtualGridInputBehavior

Inheritance: objectVirtualGridInputBehavior

Constructors

VirtualGridInputBehavior(RadVirtualGridElement)

Initializes a new instance of the VirtualGridInputBehavior class.

Declaration

cs-api-definition
public VirtualGridInputBehavior(RadVirtualGridElement gridElement)

Parameters

gridElement

RadVirtualGridElement

The grid element.

Fields

beginEdit

Declaration

cs-api-definition
protected bool beginEdit

Field Value

bool

wasInEditMode

Declaration

cs-api-definition
protected bool wasInEditMode

Field Value

bool

Properties

GridElement

Gets the RadVirtualGridElement instance this behavior is assigned to.

Declaration

cs-api-definition
public RadVirtualGridElement GridElement { get; }

Property Value

RadVirtualGridElement

IsResizing

Gets a value indicating whether a resize operation is underway.

Declaration

cs-api-definition
public bool IsResizing { get; }

Property Value

bool

IsResizingColumn

Gets a value indicating whether a column resize operation is iunderway.

Declaration

cs-api-definition
public bool IsResizingColumn { get; }

Property Value

bool

IsResizingRow

Gets a value indicating whether a row resuze operations is underway.

Declaration

cs-api-definition
public bool IsResizingRow { get; }

Property Value

bool

IsSelecting

Gets a value indicating whether a selection operation is underway.

Declaration

cs-api-definition
public bool IsSelecting { get; }

Property Value

bool

Methods

GetFirstScrollableRow(VirtualGridTableElement)

Gets the first scrollable row.

Declaration

cs-api-definition
protected int GetFirstScrollableRow(VirtualGridTableElement tableElement)

Parameters

tableElement

VirtualGridTableElement

The table element.

Returns

int

GetLastScrollableRow(VirtualGridTableElement)

Gets the last scrollable row.

Declaration

cs-api-definition
protected int GetLastScrollableRow(VirtualGridTableElement tableElement)

Parameters

tableElement

VirtualGridTableElement

The table element.

Returns

int

HandleAddKey(KeyEventArgs)

Handles the Add key

Declaration

cs-api-definition
protected virtual bool HandleAddKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleAlphaNumericKey(KeyPressEventArgs)

Handles the alpha-numeric keys

Declaration

cs-api-definition
protected virtual bool HandleAlphaNumericKey(KeyPressEventArgs keys)

Parameters

keys

KeyPressEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleDeleteKey(KeyEventArgs)

Handles the Delete key

Declaration

cs-api-definition
protected virtual bool HandleDeleteKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleDownKey(KeyEventArgs)

Handles the Down key

Declaration

cs-api-definition
protected virtual bool HandleDownKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleEndKey(KeyEventArgs)

Handles the End key

Declaration

cs-api-definition
protected virtual bool HandleEndKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleEnterKey(KeyEventArgs)

Handles the Enter key

Declaration

cs-api-definition
protected virtual bool HandleEnterKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleEscapeKey(KeyEventArgs)

Handles the Escape key

Declaration

cs-api-definition
protected virtual bool HandleEscapeKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleF2Key(KeyEventArgs)

Handles the F2 key

Declaration

cs-api-definition
protected virtual bool HandleF2Key(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleHomeKey(KeyEventArgs)

Handles the Home key

Declaration

cs-api-definition
protected virtual bool HandleHomeKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleInsertKey(KeyEventArgs)

Handles the Insert key

Declaration

cs-api-definition
protected virtual bool HandleInsertKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleKeyDown(KeyEventArgs)

Handles the key down.

Declaration

cs-api-definition
public virtual bool HandleKeyDown(KeyEventArgs args)

Parameters

args

KeyEventArgs

The KeyEventArgs instance containing the event data.

Returns

bool

HandleKeyPress(KeyPressEventArgs)

Handles the key press.

Declaration

cs-api-definition
public virtual bool HandleKeyPress(KeyPressEventArgs args)

Parameters

args

KeyPressEventArgs

The KeyPressEventArgs instance containing the event data.

Returns

bool

HandleKeyUp(KeyEventArgs)

Handles the key up.

Declaration

cs-api-definition
public virtual bool HandleKeyUp(KeyEventArgs args)

Parameters

args

KeyEventArgs

The KeyEventArgs instance containing the event data.

Returns

bool

HandleLeftKey(KeyEventArgs)

Handles the Left key

Declaration

cs-api-definition
protected virtual bool HandleLeftKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleMouseDoubleClick(MouseEventArgs)

Handles the mouse double click.

Declaration

cs-api-definition
public virtual bool HandleMouseDoubleClick(MouseEventArgs args)

Parameters

args

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

HandleMouseDown(MouseEventArgs)

Handles the mouse down.

Declaration

cs-api-definition
public virtual bool HandleMouseDown(MouseEventArgs args)

Parameters

args

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

HandleMouseMove(MouseEventArgs)

Handles the mouse move.

Declaration

cs-api-definition
public virtual bool HandleMouseMove(MouseEventArgs args)

Parameters

args

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

HandleMouseUp(MouseEventArgs)

Handles the mouse up.

Declaration

cs-api-definition
public virtual bool HandleMouseUp(MouseEventArgs args)

Parameters

args

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

HandleMouseWheel(MouseEventArgs)

Handles the mouse wheel.

Declaration

cs-api-definition
public virtual bool HandleMouseWheel(MouseEventArgs args)

Parameters

args

MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

bool

HandlePageDownKey(KeyEventArgs)

Handle the PageDown key

Declaration

cs-api-definition
protected virtual bool HandlePageDownKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandlePageUpKey(KeyEventArgs)

Handles the PageUp key

Declaration

cs-api-definition
protected virtual bool HandlePageUpKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleRightKey(KeyEventArgs)

Handles the Right key

Declaration

cs-api-definition
protected virtual bool HandleRightKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleSpaceKey(KeyEventArgs)

Handles the Space key

Declaration

cs-api-definition
protected virtual bool HandleSpaceKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleSubtractKey(KeyEventArgs)

Handles the Subtract key

Declaration

cs-api-definition
protected virtual bool HandleSubtractKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleTabKey(KeyEventArgs)

Handles the Tab key

Declaration

cs-api-definition
protected virtual bool HandleTabKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleUnhandledKeys(KeyEventArgs)

Processes keys that are not handled by HandleKeyDown methoes

Declaration

cs-api-definition
protected virtual bool HandleUnhandledKeys(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

Returns true if the event is processed

HandleUpKey(KeyEventArgs)

Handles the Up key

Declaration

cs-api-definition
protected virtual bool HandleUpKey(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns

bool

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.

Declaration

cs-api-definition
public void SelectCell(int row, int column)

Parameters

row

int

The row index.

column

int

The column index.

SelectCell(int, int, VirtualGridViewInfo)

Selects the cell defined with the row and column parameters in the provided view info. Clears previous selection.

Declaration

cs-api-definition
public void SelectCell(int row, int column, VirtualGridViewInfo viewInfo)

Parameters

row

int

The row index.

column

int

The column index.

viewInfo

VirtualGridViewInfo

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

cs-api-definition
public void SelectCell(int row, int column, bool shift, bool ctrl, VirtualGridViewInfo viewInfo)

Parameters

row

int

The row index.

column

int

The column index.

shift

bool

Determines if the selection should be extended as if the Shift key is pressed.

ctrl

bool

Determines if the selection should be extended as if the Ctrl key is pressed.

viewInfo

VirtualGridViewInfo

The view info.

SelectNextControl(bool)

Selects the next control.

Declaration

cs-api-definition
protected virtual bool SelectNextControl(bool forward)

Parameters

forward

bool

if set to true [forward].

Returns

bool