New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class VirtualGridInputBehavior

Inheritance: objectVirtualGridInputBehavior

Constructors

Initializes a new instance of the VirtualGridInputBehavior class.

C#
public VirtualGridInputBehavior(RadVirtualGridElement gridElement)
Parameters:gridElementRadVirtualGridElement

The grid element.

Fields

C#
protected bool beginEdit
C#
protected bool wasInEditMode

Properties

Gets the RadVirtualGridElement instance this behavior is assigned to.

C#
public RadVirtualGridElement GridElement { get; }

Gets a value indicating whether a resize operation is underway.

C#
public bool IsResizing { get; }

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

C#
public bool IsResizingColumn { get; }

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

C#
public bool IsResizingRow { get; }

Gets a value indicating whether a selection operation is underway.

C#
public bool IsSelecting { get; }

Methods

Gets the first scrollable row.

C#
protected int GetFirstScrollableRow(VirtualGridTableElement tableElement)
Parameters:tableElementVirtualGridTableElement

The table element.

Returns:

int

Gets the last scrollable row.

C#
protected int GetLastScrollableRow(VirtualGridTableElement tableElement)
Parameters:tableElementVirtualGridTableElement

The table element.

Returns:

int

Handles the Add key

C#
protected virtual bool HandleAddKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the alpha-numeric keys

C#
protected virtual bool HandleAlphaNumericKey(KeyPressEventArgs keys)
Parameters:keysKeyPressEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Delete key

C#
protected virtual bool HandleDeleteKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Down key

C#
protected virtual bool HandleDownKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the End key

C#
protected virtual bool HandleEndKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Enter key

C#
protected virtual bool HandleEnterKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Escape key

C#
protected virtual bool HandleEscapeKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the F2 key

C#
protected virtual bool HandleF2Key(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Home key

C#
protected virtual bool HandleHomeKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Insert key

C#
protected virtual bool HandleInsertKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the key down.

C#
public virtual bool HandleKeyDown(KeyEventArgs args)
Parameters:argsKeyEventArgs

The KeyEventArgs instance containing the event data.

Returns:

bool

Handles the key press.

C#
public virtual bool HandleKeyPress(KeyPressEventArgs args)
Parameters:argsKeyPressEventArgs

The KeyPressEventArgs instance containing the event data.

Returns:

bool

Handles the key up.

C#
public virtual bool HandleKeyUp(KeyEventArgs args)
Parameters:argsKeyEventArgs

The KeyEventArgs instance containing the event data.

Returns:

bool

Handles the Left key

C#
protected virtual bool HandleLeftKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the mouse double click.

C#
public virtual bool HandleMouseDoubleClick(MouseEventArgs args)
Parameters:argsMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Handles the mouse down.

C#
public virtual bool HandleMouseDown(MouseEventArgs args)
Parameters:argsMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Handles the mouse move.

C#
public virtual bool HandleMouseMove(MouseEventArgs args)
Parameters:argsMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Handles the mouse up.

C#
public virtual bool HandleMouseUp(MouseEventArgs args)
Parameters:argsMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Handles the mouse wheel.

C#
public virtual bool HandleMouseWheel(MouseEventArgs args)
Parameters:argsMouseEventArgs

The MouseEventArgs instance containing the event data.

Returns:

bool

Handle the PageDown key

C#
protected virtual bool HandlePageDownKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the PageUp key

C#
protected virtual bool HandlePageUpKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Right key

C#
protected virtual bool HandleRightKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Space key

C#
protected virtual bool HandleSpaceKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Subtract key

C#
protected virtual bool HandleSubtractKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Tab key

C#
protected virtual bool HandleTabKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Processes keys that are not handled by HandleKeyDown methoes

C#
protected virtual bool HandleUnhandledKeys(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

Handles the Up key

C#
protected virtual bool HandleUpKey(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyPressEventArgs containing data related to this event

Returns:

bool

Returns true if the event is processed

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.

C#
public void SelectCell(int row, int column, bool shift, bool ctrl, VirtualGridViewInfo viewInfo)
Parameters:rowint

The row index.

columnint

The column index.

shiftbool

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

ctrlbool

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

viewInfoVirtualGridViewInfo

The view info.

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

C#
public void SelectCell(int row, int column, VirtualGridViewInfo viewInfo)
Parameters:rowint

The row index.

columnint

The column index.

viewInfoVirtualGridViewInfo

The view info.

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

C#
public void SelectCell(int row, int column)
Parameters:rowint

The row index.

columnint

The column index.

Selects the next control.

C#
protected virtual bool SelectNextControl(bool forward)
Parameters:forwardbool

if set to true [forward].

Returns:

bool