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
GridCellElement
The cell at point. |
DefaultRowBehavior
Gets the default row behavior.
Declaration
public virtual IGridBehavior DefaultRowBehavior { get; }
Property Value
IGridBehavior
The default row behavior. |
LockedBehavior
Gets the locked behavior.
Declaration
public IGridBehavior LockedBehavior { get; }
Property Value
IGridBehavior
The locked behavior. |
OriginalCursor
Gets or sets the original control cursor.
Declaration
public Cursor OriginalCursor { get; set; }
Property Value
System.Windows.Forms.Cursor
The original cursor. |
RowAtPoint
Gets the row at point.
Declaration
public GridRowElement RowAtPoint { get; }
Property Value
GridRowElement
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.Boolean
disposing
The disposing. |
Finalize()
Declaration
protected void Finalize()
GetBehavior(Type)
Gets an instance of IGridBehavior for specified GridViewRowInfo type.
Declaration
public virtual IGridBehavior GetBehavior(Type rowType)
Parameters
System.Type
rowType
A type inherited from GridViewRowInfo. |
Returns
IGridBehavior
Returns an instance of IGridBehavior |
GetCurrentRowBehavior()
Gets the current row behavior.
Declaration
protected virtual IGridBehavior GetCurrentRowBehavior()
Returns
IGridBehavior
|
GetFirstScrollableRow(GridTableElement, Boolean)
Gets the first scrollable row.
Declaration
protected GridViewRowInfo GetFirstScrollableRow(GridTableElement tableElement, bool checkBounds)
Parameters
GridTableElement
tableElement
The table element. |
System.Boolean
checkBounds
if set to |
Returns
GridViewRowInfo
|
GetLastScrollableRow(GridTableElement)
Gets the last scrollable row.
Declaration
protected GridViewRowInfo GetLastScrollableRow(GridTableElement tableElement)
Parameters
GridTableElement
tableElement
The table element. |
Returns
GridViewRowInfo
|
GetRowBehaviorAtPoint(Point)
Gets the row behavior at point.
Declaration
protected virtual IGridBehavior GetRowBehaviorAtPoint(Point point)
Parameters
System.Drawing.Point
point
The point. |
Returns
IGridBehavior
|
Initialize(RadGridViewElement)
Initializes the IGridBehavior with the specified RadGridViewElement
Declaration
public override void Initialize(RadGridViewElement gridRootElement)
Parameters
RadGridViewElement
gridRootElement
|
Overrides
LockBehavior(IGridBehavior)
Locks the specified behavior.
Declaration
public virtual void LockBehavior(IGridBehavior behavior)
Parameters
IGridBehavior
behavior
The behavior. |
NavigateToPage(GridViewRowInfo, Keys)
OnClick(EventArgs)
Raises the Click event.
Declaration
public override bool OnClick(EventArgs e)
Parameters
System.EventArgs
e
The System.EventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
OnContextMenu(MouseEventArgs)
Raises the ContextMenu event.
Declaration
public override bool OnContextMenu(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
OnDoubleClick(EventArgs)
Raises the DoubleClick event.
Declaration
public override bool OnDoubleClick(EventArgs e)
Parameters
System.EventArgs
e
The System.EventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
OnMouseDoubleClick(MouseEventArgs)
Raises the MouseDoubleClick event.
Declaration
public override bool OnMouseDoubleClick(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
OnMouseDown(MouseEventArgs)
Raises the MouseDown event.
Declaration
public override bool OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
OnMouseDownLeft(MouseEventArgs)
Raises the MouseDownLeft event.
Declaration
protected virtual bool OnMouseDownLeft(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
OnMouseDownRight(MouseEventArgs)
Raises the MouseDownRight event.
Declaration
protected virtual bool OnMouseDownRight(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
OnMouseLeave(EventArgs)
Occurs when the mouse pointer leaves the RadGridView.
Declaration
public override bool OnMouseLeave(EventArgs e)
Parameters
System.EventArgs
e
Type: System.EventArgs |
Returns
System.Boolean
Returns true if the event is processed |
Overrides
OnMouseMove(MouseEventArgs)
Raises the MouseMove event.
Declaration
public override bool OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
OnMouseUp(MouseEventArgs)
Raises the MouseUp event.
Declaration
public override bool OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
OnMouseWheel(MouseEventArgs)
Raises the MouseWheel event.
Declaration
public override bool OnMouseWheel(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
ProcessKey(KeyEventArgs)
Processes the key.
Declaration
public override bool ProcessKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The System.Windows.Forms.KeyEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
ProcessKeyDown(KeyEventArgs)
Processes the key down.
Declaration
public override bool ProcessKeyDown(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The System.Windows.Forms.KeyEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
ProcessKeyPress(KeyPressEventArgs)
Processes the key press.
Declaration
public override bool ProcessKeyPress(KeyPressEventArgs keys)
Parameters
System.Windows.Forms.KeyPressEventArgs
keys
The System.Windows.Forms.KeyPressEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
ProcessKeyUp(KeyEventArgs)
Processes the key up.
Declaration
public override bool ProcessKeyUp(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The System.Windows.Forms.KeyEventArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
ProcessPageDownKey(KeyEventArgs)
Processes the PageDown key
Declaration
protected virtual bool ProcessPageDownKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
Returns true if the event is processed |
ProcessPageUpKey(KeyEventArgs)
Processes the PageUp key
Declaration
protected virtual bool ProcessPageUpKey(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The KeyPressEventArgs containing data related to this event |
Returns
System.Boolean
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
System.Type
rowType
A type inherited from GridViewRowInfo. |
IGridBehavior
rowBehavior
An instance of IGridBehavior. |
UnlockBehavior(IGridBehavior)
Unlocks the behavior.
Declaration
public virtual void UnlockBehavior(IGridBehavior behavior)
Parameters
IGridBehavior
behavior
The behavior. |
UnregisterBehavior(Type)
Unregisters IGridBehavior instance for specified row type
Declaration
public virtual bool UnregisterBehavior(Type rowType)
Parameters
System.Type
rowType
A type inherited from GridViewRowInfo. |
Returns
System.Boolean
Returns true if succeed, otherwise false. |