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
Initializes a new instance of the VirtualGridInputBehavior class.
public VirtualGridInputBehavior(RadVirtualGridElement gridElement)
The grid element.
Fields
protected bool wasInEditMode
Properties
Gets the RadVirtualGridElement instance this behavior is assigned to.
public RadVirtualGridElement GridElement { get; }
Gets a value indicating whether a resize operation is underway.
public bool IsResizing { get; }
Gets a value indicating whether a column resize operation is iunderway.
public bool IsResizingColumn { get; }
Gets a value indicating whether a row resuze operations is underway.
public bool IsResizingRow { get; }
Gets a value indicating whether a selection operation is underway.
public bool IsSelecting { get; }
Methods
Gets the first scrollable row.
protected int GetFirstScrollableRow(VirtualGridTableElement tableElement)
The table element.
Returns:Gets the last scrollable row.
protected int GetLastScrollableRow(VirtualGridTableElement tableElement)
The table element.
Returns:Handles the Add key
protected virtual bool HandleAddKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the alpha-numeric keys
protected virtual bool HandleAlphaNumericKey(KeyPressEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Delete key
protected virtual bool HandleDeleteKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Down key
protected virtual bool HandleDownKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the End key
protected virtual bool HandleEndKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Enter key
protected virtual bool HandleEnterKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Escape key
protected virtual bool HandleEscapeKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the F2 key
protected virtual bool HandleF2Key(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Home key
protected virtual bool HandleHomeKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Insert key
protected virtual bool HandleInsertKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the key down.
public virtual bool HandleKeyDown(KeyEventArgs args)
The KeyEventArgs instance containing the event data.
Returns:Handles the key press.
public virtual bool HandleKeyPress(KeyPressEventArgs args)
The KeyPressEventArgs instance containing the event data.
Returns:Handles the key up.
public virtual bool HandleKeyUp(KeyEventArgs args)
The KeyEventArgs instance containing the event data.
Returns:Handles the Left key
protected virtual bool HandleLeftKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the mouse double click.
public virtual bool HandleMouseDoubleClick(MouseEventArgs args)
The MouseEventArgs instance containing the event data.
Returns:Handles the mouse down.
public virtual bool HandleMouseDown(MouseEventArgs args)
The MouseEventArgs instance containing the event data.
Returns:Handles the mouse move.
public virtual bool HandleMouseMove(MouseEventArgs args)
The MouseEventArgs instance containing the event data.
Returns:Handles the mouse up.
public virtual bool HandleMouseUp(MouseEventArgs args)
The MouseEventArgs instance containing the event data.
Returns:Handles the mouse wheel.
public virtual bool HandleMouseWheel(MouseEventArgs args)
The MouseEventArgs instance containing the event data.
Returns:Handle the PageDown key
protected virtual bool HandlePageDownKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the PageUp key
protected virtual bool HandlePageUpKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Right key
protected virtual bool HandleRightKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Space key
protected virtual bool HandleSpaceKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Subtract key
protected virtual bool HandleSubtractKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Tab key
protected virtual bool HandleTabKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes keys that are not handled by HandleKeyDown methoes
protected virtual bool HandleUnhandledKeys(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Handles the Up key
protected virtual bool HandleUpKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns: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.
public void SelectCell(int row, int column, bool shift, bool ctrl, VirtualGridViewInfo viewInfo)
The row index.
columnintThe column index.
shiftboolDetermines if the selection should be extended as if the Shift key is pressed.
ctrlboolDetermines if the selection should be extended as if the Ctrl key is pressed.
viewInfoVirtualGridViewInfoThe view info.
Selects the cell defined with the row and column parameters in the provided view info. Clears previous selection.
public void SelectCell(int row, int column, VirtualGridViewInfo viewInfo)
The row index.
columnintThe column index.
viewInfoVirtualGridViewInfoThe view info.