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