Class BaseGridBehavior
This class is a message filter for RadGridView and handles mouse and keyboard events
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class BaseGridBehavior : SplitGridBehavior, IGridBehavior, IDisposable
Constructors
BaseGridBehavior()
Properties
CellAtPoint
Gets the cell at point.
Declaration
public GridCellElement CellAtPoint { get; }
Property Value
Grid The cell at point. |
DefaultRowBehavior
Gets the default row behavior.
Declaration
public virtual IGridBehavior DefaultRowBehavior { get; }
Property Value
IGrid The default row behavior. |
LockedBehavior
Gets the locked behavior.
Declaration
public IGridBehavior LockedBehavior { get; }
Property Value
IGrid The locked behavior. |
OriginalCursor
Gets or sets the original control cursor.
Declaration
public Cursor OriginalCursor { get; set; }
Property Value
System. The original cursor. |
RowAtPoint
Gets the row at point.
Declaration
public GridRowElement RowAtPoint { get; }
Property Value
Grid The row at point. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Dispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System. The disposing. |
Finalize()
Declaration
protected void Finalize()
GetBehavior(Type)
Gets an instance of IGridBehavior for specified Grid
Declaration
public virtual IGridBehavior GetBehavior(Type rowType)
Parameters
System. A type inherited from Grid |
Returns
IGrid Returns an instance of IGridBehavior |
GetCurrentRowBehavior()
Gets the current row behavior.
Declaration
protected virtual IGridBehavior GetCurrentRowBehavior()
Returns
GetFirstScrollableRow(GridTableElement, Boolean)
Gets the first scrollable row.
Declaration
protected GridViewRowInfo GetFirstScrollableRow(GridTableElement tableElement, bool checkBounds)
Parameters
Grid The table element. |
System. if set to |
Returns
GetLastScrollableRow(GridTableElement)
Gets the last scrollable row.
Declaration
protected GridViewRowInfo GetLastScrollableRow(GridTableElement tableElement)
Parameters
Grid The table element. |
Returns
GetRowBehaviorAtPoint(Point)
Gets the row behavior at point.
Declaration
protected virtual IGridBehavior GetRowBehaviorAtPoint(Point point)
Parameters
System. The point. |
Returns
Initialize(RadGridViewElement)
Initializes the IGridBehavior with the specified RadGridViewElement
Declaration
public override void Initialize(RadGridViewElement gridRootElement)
Parameters
Rad
|
Overrides
LockBehavior(IGridBehavior)
Locks the specified behavior.
Declaration
public virtual void LockBehavior(IGridBehavior behavior)
Parameters
IGrid The behavior. |
NavigateToPage(GridViewRowInfo, Keys)
OnClick(EventArgs)
Raises the Click event.
Declaration
public override bool OnClick(EventArgs e)
Parameters
System. The System. |
Returns
System.
|
Overrides
OnContextMenu(MouseEventArgs)
Raises the Context
Declaration
public override bool OnContextMenu(MouseEventArgs e)
Parameters
System. The System. |
Returns
System.
|
Overrides
OnDoubleClick(EventArgs)
Raises the Double
Declaration
public override bool OnDoubleClick(EventArgs e)
Parameters
System. The System. |
Returns
System.
|
Overrides
OnMouseDoubleClick(MouseEventArgs)
Raises the Mouse
Declaration
public override bool OnMouseDoubleClick(MouseEventArgs e)
Parameters
System. The System. |
Returns
System.
|
Overrides
OnMouseDown(MouseEventArgs)
Raises the Mouse
Declaration
public override bool OnMouseDown(MouseEventArgs e)
Parameters
System. The System. |
Returns
System.
|
Overrides
OnMouseDownLeft(MouseEventArgs)
Raises the Mouse
Declaration
protected virtual bool OnMouseDownLeft(MouseEventArgs e)
Parameters
System. The System. |
Returns
System.
|
OnMouseDownRight(MouseEventArgs)
Raises the Mouse
Declaration
protected virtual bool OnMouseDownRight(MouseEventArgs e)
Parameters
System. The System. |
Returns
System.
|
OnMouseLeave(EventArgs)
Occurs when the mouse pointer leaves the RadGridView.
Declaration
public override bool OnMouseLeave(EventArgs e)
Parameters
System. Type: System.EventArgs |
Returns
System. Returns true if the event is processed |
Overrides
OnMouseMove(MouseEventArgs)
Raises the Mouse
Declaration
public override bool OnMouseMove(MouseEventArgs e)
Parameters
System. The System. |
Returns
System.
|
Overrides
OnMouseUp(MouseEventArgs)
Raises the Mouse
Declaration
public override bool OnMouseUp(MouseEventArgs e)
Parameters
System. The System. |
Returns
System.
|
Overrides
OnMouseWheel(MouseEventArgs)
Raises the Mouse
Declaration
public override bool OnMouseWheel(MouseEventArgs e)
Parameters
System. The System. |
Returns
System.
|
Overrides
ProcessKey(KeyEventArgs)
Processes the key.
Declaration
public override bool ProcessKey(KeyEventArgs keys)
Parameters
System. The System. |
Returns
System.
|
Overrides
ProcessKeyDown(KeyEventArgs)
Processes the key down.
Declaration
public override bool ProcessKeyDown(KeyEventArgs keys)
Parameters
System. The System. |
Returns
System.
|
Overrides
ProcessKeyPress(KeyPressEventArgs)
Processes the key press.
Declaration
public override bool ProcessKeyPress(KeyPressEventArgs keys)
Parameters
System. The System. |
Returns
System.
|
Overrides
ProcessKeyUp(KeyEventArgs)
Processes the key up.
Declaration
public override bool ProcessKeyUp(KeyEventArgs keys)
Parameters
System. The System. |
Returns
System.
|
Overrides
ProcessPageDownKey(KeyEventArgs)
Processes the PageDown key
Declaration
protected virtual bool ProcessPageDownKey(KeyEventArgs keys)
Parameters
System. The KeyPressEventArgs containing data related to this event |
Returns
System. Returns true if the event is processed |
ProcessPageUpKey(KeyEventArgs)
Processes the PageUp key
Declaration
protected virtual bool ProcessPageUpKey(KeyEventArgs keys)
Parameters
System. The KeyPressEventArgs containing data related to this event |
Returns
System. Returns true if the event is processed |
RegisterBehavior(Type, IGridBehavior)
Registers IGrid
Declaration
public virtual void RegisterBehavior(Type rowType, IGridBehavior rowBehavior)
Parameters
System. A type inherited from Grid |
IGrid An instance of IGrid |
UnlockBehavior(IGridBehavior)
Unlocks the behavior.
Declaration
public virtual void UnlockBehavior(IGridBehavior behavior)
Parameters
IGrid The behavior. |
UnregisterBehavior(Type)
Unregisters IGrid
Declaration
public virtual bool UnregisterBehavior(Type rowType)
Parameters
System. A type inherited from Grid |
Returns
System. Returns true if succeed, otherwise false. |