BaseGridBehavior
This class is a message filter for RadGridView and handles mouse and keyboard events
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class BaseGridBehavior : SplitGridBehavior, IGridBehavior, IDisposable
Inheritance: objectGridBehaviorImplSplitGridBehaviorBaseGridBehavior
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the BaseGridBehavior class.
public BaseGridBehavior()
Properties
Gets the cell at point.
public GridCellElement CellAtPoint { get; }
The cell at point.
Gets the default row behavior.
public virtual IGridBehavior DefaultRowBehavior { get; }
The default row behavior.
Gets the locked behavior.
public IGridBehavior LockedBehavior { get; }
The locked behavior.
Gets or sets the original control cursor.
public Cursor OriginalCursor { get; set; }
The original cursor.
Gets the row at point.
public GridRowElement RowAtPoint { get; }
The row at point.
Methods
protected ~BaseGridBehavior()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Gets an instance of IGridBehavior for specified GridViewRowInfo type.
public virtual IGridBehavior GetBehavior(Type rowType)
A type inherited from GridViewRowInfo.
Returns:Returns an instance of IGridBehavior
Gets the current row behavior.
Gets the first scrollable row.
protected GridViewRowInfo GetFirstScrollableRow(GridTableElement tableElement, bool checkBounds)
The table element.
checkBoundsboolif set to true [check bounds].
Gets the last scrollable row.
protected GridViewRowInfo GetLastScrollableRow(GridTableElement tableElement)
The table element.
Returns:Gets the row behavior at point.
protected virtual IGridBehavior GetRowBehaviorAtPoint(Point point)
The point.
Returns:Initializes the IGridBehavior with the specified RadGridViewElement
public override void Initialize(RadGridViewElement gridRootElement)
Overrides:
Locks the specified behavior.
public virtual void LockBehavior(IGridBehavior behavior)
The behavior.
Navigates to page.
protected virtual void NavigateToPage(GridViewRowInfo row, Keys keys)
The row.
keysKeysThe keys.
Raises the event.
public override bool OnContextMenu(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns: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:
Raises the event.
protected virtual bool OnMouseDownLeft(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Raises the event.
protected virtual bool OnMouseDownRight(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Raises the event.
public override bool OnMouseMove(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Overrides:
Raises the event.
public override bool OnMouseUp(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Overrides:
Raises the event.
public override bool OnMouseWheel(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:Overrides:
Processes the key.
public override bool ProcessKey(KeyEventArgs keys)
The KeyEventArgs instance containing the event data.
Returns:Overrides:
Processes the key down.
public override bool ProcessKeyDown(KeyEventArgs keys)
The KeyEventArgs instance containing the event data.
Returns:Overrides:
Processes the key press.
public override bool ProcessKeyPress(KeyPressEventArgs keys)
The KeyPressEventArgs instance containing the event data.
Returns:Overrides:
Processes the key up.
public override bool ProcessKeyUp(KeyEventArgs keys)
The KeyEventArgs instance containing the event data.
Returns:Overrides:
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
Registers IGridBehavior instance for specified row type
public virtual void RegisterBehavior(Type rowType, IGridBehavior rowBehavior)
A type inherited from GridViewRowInfo.
rowBehaviorIGridBehaviorAn instance of IGridBehavior.
Unlocks the behavior.
public virtual void UnlockBehavior(IGridBehavior behavior)
The behavior.
Unregisters IGridBehavior instance for specified row type
public virtual bool UnregisterBehavior(Type rowType)
A type inherited from GridViewRowInfo.
Returns:Returns true if succeed, otherwise false.