GridRowBehavior
Represents grid row behavior for managing keyboard and mouse input.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridRowBehavior : GridBehaviorImpl, IGridBehavior, IDisposable
Inheritance: objectGridBehaviorImplGridRowBehavior
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the BaseGridBehavior class.
public GridRowBehavior()
Properties
Gets the begin edit mode.
protected RadGridViewBeginEditMode BeginEditMode { get; }
The begin edit mode.
Gets the RadGridView's editor manager.
protected GridViewEditManager EditorManager { get; }
The editor manager.
Gets a value indicating whether the grid is in edit mode.
protected bool IsInEditMode { get; }
true if this grid is in edit mode; otherwise, false.
Gets a value indicating whether this instance is pressed control.
protected bool IsPressedControl { get; }
true if this instance is pressed control; otherwise, false.
Gets a value indicating whether this instance is pressed shift.
protected bool IsPressedShift { get; }
true if this instance is pressed shift; otherwise, false.
Gets the root template.
protected MasterGridViewTemplate MasterTemplate { get; }
The root template.
Gets the mouse down location.
protected Point MouseDownLocation { get; }
The mouse down location.
Gets the navigator.
protected IGridNavigator Navigator { get; }
The navigator.
Gets the root grid behavior.
protected BaseGridBehavior RootGridBehavior { get; }
The root grid behavior.
Gets the row to resize.
protected GridRowElement RowToResize { get; }
The row to resize.
Gets the initial height of the row to resize.
protected int RowToResizeInitialHeight { get; }
The initial height of the row to resize.
Methods
Determines whether this instance [can enter edit mode] the specified row info.
protected virtual bool CanEnterEditMode(GridViewRowInfo rowInfo)
The row info.
Returns:true if this instance [can enter edit mode] the specified row info; otherwise, false.
Determines whether this instance [can resize row] the specified current location.
public virtual bool CanResizeRow(Point currentLocation, GridRowElement rowElement)
The current location.
rowElementGridRowElementThe row element.
Returns:true if this instance [can resize row] the specified current location; otherwise, false.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
Gets the cell at point.
Gets the expander primitive.
protected GridExpanderItem GetExpanderPrimitive(Point point)
The point.
Returns:Gets the keyboard navigation context.
protected virtual GridNavigationContext GetKeyboardNavigationContext(KeyEventArgs keys)
The KeyEventArgs instance containing the event data.
Returns:Gets the mouse navigation context.
protected virtual GridNavigationContext GetMouseNavigationContext(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Gets the row at point.
Gets the table element at point.
protected GridTableElement GetTableElementAtPoint(Point point)
The point.
Returns:Determines whether [is on first cell].
Determines whether [is on last cell].
Occurs when the context menu of the RadGridView needs to be shown
public override bool OnContextMenu(MouseEventArgs e)
The MouseEventArgs containing data related to this event
Returns:Returns true if the event is processed
Overrides:
Raises the event.
public override bool OnMouseDoubleClick(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Overrides:
Raises the event.
public override bool OnMouseDown(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Overrides:
Occurs when the mouse pointer is over the RadGridView and the left mouse button is pressed.
protected virtual bool OnMouseDownLeft(MouseEventArgs e)
The MouseEventArgs containing data related to this event
Returns:Returns true if the event is processed
Occurs when the mouse pointer is over the RadGridView and the right mouse button is pressed.
protected virtual bool OnMouseDownRight(MouseEventArgs e)
The MouseEventArgs containing data related to this event
Returns:Returns true if the event is processed
Occurs when the mouse pointer is moved over the RadGridView.
public override bool OnMouseMove(MouseEventArgs e)
The MouseEventArgs containing data related to this event
Returns:Returns true if the event is processed
Overrides:
Raises the event.
public override bool OnMouseUp(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Overrides:
Raises the event.
protected virtual bool OnMouseUpLeft(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Raises the event.
protected virtual bool OnMouseUpRight(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Raises the event.
public override bool OnMouseWheel(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Overrides:
Processes the Add key
protected virtual bool ProcessAddKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the alpha-numeric keys
protected virtual bool ProcessAlphaNumericKey(KeyPressEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Delete key
protected virtual bool ProcessDeleteKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Down key
protected virtual bool ProcessDownKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the End key
protected virtual bool ProcessEndKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Enter key
protected virtual bool ProcessEnterKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Escape key
protected virtual bool ProcessEscapeKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the F2 key
protected virtual bool ProcessF2Key(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Home key
protected virtual bool ProcessHomeKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Insert key
protected virtual bool ProcessInsertKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes key events in RadGridView.
public override bool ProcessKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Overrides:
Processes key down events in RadGridView.
public override bool ProcessKeyDown(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Overrides:
Processes key press events in RadGridView.
public override bool ProcessKeyPress(KeyPressEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Overrides:
Processes key up events in RadGridView.
public override bool ProcessKeyUp(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Overrides:
Processes the Left key
protected virtual bool ProcessLeftKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the mouse selection.
protected virtual bool ProcessMouseSelection(Point mousePosition, GridCellElement currentCell)
The mouse position.
currentCellGridCellElementThe current cell.
Returns:Processes the PageDown key
protected virtual bool ProcessPageDownKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the PageUp key
protected virtual bool ProcessPageUpKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Right key
protected virtual bool ProcessRightKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Space key
protected virtual bool ProcessSpaceKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Subtract key
protected virtual bool ProcessSubtractKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Tab key
protected virtual bool ProcessTabKey(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 ProcessKey methoes
protected bool ProcessUnhandledKeys(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Processes the Up key
protected virtual bool ProcessUpKey(KeyEventArgs keys)
The KeyPressEventArgs containing data related to this event
Returns:Returns true if the event is processed
Resets the control cursor.
protected void ResetControlCursor()
Resets the field values.
Resizes the row.
protected virtual void ResizeRow(Point currentLocation)
The current location.
Selects the position on mouse down left.
protected virtual bool SelectPositionOnMouseDownLeft(MouseEventArgs e, GridRowElement rowElement, GridCellElement cellElement)
The MouseEventArgs instance containing the event data.
rowElementGridRowElementThe row element.
cellElementGridCellElementThe cell element.
Returns:Validates the on user input.
protected virtual bool ValidateOnUserInput(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns: