ClassBaseGridBehavior
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
BaseGridBehavior()
Initializes a new instance of the BaseGridBehavior class.
Declaration
public BaseGridBehavior()
Properties
CellAtPoint
Gets the cell at point.
Declaration
public GridCellElement CellAtPoint { get; }
Property Value
The cell at point.
DefaultRowBehavior
Gets the default row behavior.
Declaration
public virtual IGridBehavior DefaultRowBehavior { get; }
Property Value
The default row behavior.
LockedBehavior
Gets the locked behavior.
Declaration
public IGridBehavior LockedBehavior { get; }
Property Value
The locked behavior.
OriginalCursor
Gets or sets the original control cursor.
Declaration
public Cursor OriginalCursor { get; set; }
Property Value
The original cursor.
RowAtPoint
Gets the row at point.
Declaration
public GridRowElement RowAtPoint { get; }
Property Value
The row at point.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing
The disposing.
GetBehavior(Type)
Gets an instance of IGridBehavior for specified GridViewRowInfo type.
Declaration
public virtual IGridBehavior GetBehavior(Type rowType)
Parameters
rowType
A type inherited from GridViewRowInfo.
Returns
Returns an instance of IGridBehavior
GetCurrentRowBehavior()
Gets the current row behavior.
Declaration
protected virtual IGridBehavior GetCurrentRowBehavior()
Returns
GetFirstScrollableRow(GridTableElement, bool)
Gets the first scrollable row.
Declaration
protected GridViewRowInfo GetFirstScrollableRow(GridTableElement tableElement, bool checkBounds)
Parameters
tableElement
The table element.
checkBounds
if set to true [check bounds].
Returns
GetLastScrollableRow(GridTableElement)
Gets the last scrollable row.
Declaration
protected GridViewRowInfo GetLastScrollableRow(GridTableElement tableElement)
Parameters
tableElement
The table element.
Returns
GetRowBehaviorAtPoint(Point)
Gets the row behavior at point.
Declaration
protected virtual IGridBehavior GetRowBehaviorAtPoint(Point point)
Parameters
point
The point.
Returns
Initialize(RadGridViewElement)
Initializes the IGridBehavior with the specified RadGridViewElement
Declaration
public override void Initialize(RadGridViewElement gridRootElement)
Parameters
gridRootElement
Overrides
LockBehavior(IGridBehavior)
Locks the specified behavior.
Declaration
public virtual void LockBehavior(IGridBehavior behavior)
Parameters
behavior
The behavior.
NavigateToPage(GridViewRowInfo, Keys)
Navigates to page.
Declaration
protected virtual void NavigateToPage(GridViewRowInfo row, Keys keys)
Parameters
row
The row.
keys
The keys.
OnClick(EventArgs)
Raises the event.
OnContextMenu(MouseEventArgs)
Raises the event.
Declaration
public override bool OnContextMenu(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
Overrides
OnDoubleClick(EventArgs)
Raises the event.
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)
Raises the event.
Declaration
protected virtual bool OnMouseDownLeft(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
OnMouseDownRight(MouseEventArgs)
Raises the event.
Declaration
protected virtual bool OnMouseDownRight(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
OnMouseLeave(EventArgs)
Occurs when the mouse pointer leaves the RadGridView.
OnMouseMove(MouseEventArgs)
Raises the event.
Declaration
public override bool OnMouseMove(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
Overrides
OnMouseUp(MouseEventArgs)
Raises the event.
Declaration
public override bool OnMouseUp(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
Overrides
OnMouseWheel(MouseEventArgs)
Raises the event.
Declaration
public override bool OnMouseWheel(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Returns
Overrides
ProcessKey(KeyEventArgs)
Processes the key.
Declaration
public override bool ProcessKey(KeyEventArgs keys)
Parameters
keys
The KeyEventArgs instance containing the event data.
Returns
Overrides
ProcessKeyDown(KeyEventArgs)
Processes the key down.
Declaration
public override bool ProcessKeyDown(KeyEventArgs keys)
Parameters
keys
The KeyEventArgs instance containing the event data.
Returns
Overrides
ProcessKeyPress(KeyPressEventArgs)
Processes the key press.
Declaration
public override bool ProcessKeyPress(KeyPressEventArgs keys)
Parameters
keys
The KeyPressEventArgs instance containing the event data.
Returns
Overrides
ProcessKeyUp(KeyEventArgs)
Processes the key up.
Declaration
public override bool ProcessKeyUp(KeyEventArgs keys)
Parameters
keys
The KeyEventArgs instance containing the event data.
Returns
Overrides
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
RegisterBehavior(Type, IGridBehavior)
Registers IGridBehavior instance for specified row type
Declaration
public virtual void RegisterBehavior(Type rowType, IGridBehavior rowBehavior)
Parameters
rowType
A type inherited from GridViewRowInfo.
rowBehavior
An instance of IGridBehavior.
UnlockBehavior(IGridBehavior)
Unlocks the behavior.
Declaration
public virtual void UnlockBehavior(IGridBehavior behavior)
Parameters
behavior
The behavior.
UnregisterBehavior(Type)
Unregisters IGridBehavior instance for specified row type
Declaration
public virtual bool UnregisterBehavior(Type rowType)
Parameters
rowType
A type inherited from GridViewRowInfo.
Returns
Returns true if succeed, otherwise false.
~BaseGridBehavior()
Declaration
protected ~BaseGridBehavior()