BaseGridNavigator
This class defines methods used to change the currently selected row and column
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class BaseGridNavigator : IGridNavigator, IGridViewEventListener
Inheritance: objectBaseGridNavigator
Implements:
Constructors
public BaseGridNavigator()
Properties
Gets the anchored position.
protected AnchoredPosition AnchoredPosition { get; }
The anchored position.
Columns
IList<GridViewColumn>
Gets the render columns associated with the CurrentView in grid
protected IList<GridViewColumn> Columns { get; }
Gets the context.
protected GridNavigationContext Context { get; }
The context.
Gets grid's current column
protected GridViewColumn CurrentColumn { get; }
Gets the column index of the current column in grid
protected int CurrentColumnIndex { get; }
Gets grid's current row
protected GridViewRowInfo CurrentRow { get; }
The RadGridViewElement associated with this navigator
public RadGridViewElement GridViewElement { get; }
Implements:
Gets a value that indicates whether the CONTROL button is performed
protected bool IsControlButtonPressed { get; }
Gets a value that indicates whether Mouse Selection is performed
protected bool IsMouseSelection { get; }
Gets a value that indicates whether right mouse button is performed
protected bool IsRightMouseButtonClicked { get; }
Gets a value that indicates whether the SHIFT button is performed
protected bool IsShiftButtonPressed { get; }
The MasterTemplate associated with this navigator
public MasterGridViewTemplate MasterTemplate { get; }
Gets a value indicating whether the grid is in right-to-left mode
protected bool RightToLeft { get; }
Gets the traverser.
protected GridTraverser Traverser { get; }
The traverser.
Gets the GridViewInfo associated with the CurrentView in grid
protected GridViewInfo ViewInfo { get; }
Gets the GridViewTemplate associated with the CurrentView in grid
protected GridViewTemplate ViewTemplate { get; }
Methods
protected virtual bool AnalyzeQueueCore(List<GridViewEvent> events)
Begins grid selection
public virtual void BeginSelection(GridNavigationContext context)
An instance of GridNavigationContext.
Implements:
Cells the select.
protected virtual bool CellSelect(GridViewRowInfo row, GridViewColumn column)
The row.
columnGridViewColumnThe column.
Returns:Clears the selection
public virtual void ClearSelection()
Implements:
Deletes the selected rows.
Does the multi select.
protected virtual bool DoMultiSelect(GridViewRowInfo oldRow, GridViewColumn oldColumn, GridViewRowInfo row, GridViewColumn column)
The old row.
oldColumnGridViewColumnThe old column.
rowGridViewRowInfoThe row.
columnGridViewColumnThe column.
Returns:Does the multi select core.
Ends selection
public virtual void EndSelection()
Implements:
Returns a boolean value indicating whether the full row is selected.
protected virtual bool FullRowSelect(GridViewRowInfo oldCurrentRow, GridViewRowInfo row)
The old current row.
rowGridViewRowInfoThe row.
Returns:Initializes the IGridNavigator with the specified RadGridView
public virtual void Initialize(RadGridViewElement element)
The RadGridViewElement to associate with this object
Implements:
Checks whether the specified column is the first one.
public virtual bool IsFirstColumn(GridViewColumn column)
the column to check
Returns:true if this is the first column
Implements:
Checks whether the specified column is the first editable one.
public virtual bool IsFirstEditableColumn(GridViewColumn column)
the column to check
Returns:true if this is the first editable column
Implements:
Checks whether the specified row is the last one.
public virtual bool IsFirstRow(GridViewRowInfo row)
the row to check
Returns:true if this is the last row
Implements:
Checks whether the specified column is the last one.
public virtual bool IsLastColumn(GridViewColumn column)
the column to check
Returns:true if this is the last column
Implements:
Checks whether the specified column is the last editable one.
public virtual bool IsLastEditableColumn(GridViewColumn column)
the column to check
Returns:true if this is the last editable column
Implements:
Checks whether the specified row is the first one.
public virtual bool IsLastRow(GridViewRowInfo row)
the row to check
Returns:true if this is the first row
Implements:
Navigates to row.
protected virtual bool NavigateToRow(GridViewRowInfo row, bool select)
The row.
selectboolThe select.
Returns:protected virtual GridViewEventResult PostProcessEventCore(GridViewEvent eventData)
protected virtual GridViewEventResult PreProcessEventCore(GridViewEvent eventData)
protected virtual GridViewEventResult ProcessCurrentChangedEvent(GridViewEvent eventData)
protected virtual GridViewEventResult ProcessEventCore(GridViewEvent eventData)
protected virtual GridViewEventResult ProcessViewChangedEvent(GridViewEvent eventData)
Selects the sepcified row as current and specified column as current
public virtual bool Select(GridViewRowInfo row, GridViewColumn column)
An instance of GridViewRowInfo.
columnGridViewColumnAn instance of GridViewColumn.
Returns:Implements:
Select all rows and cells
public virtual void SelectAll()
Implements:
Selects the cell associated with the respective row and column.
protected virtual bool SelectCore(GridViewRowInfo row, GridViewColumn column)
The row.
columnGridViewColumnThe column.
Returns:Selects the first column as current column in grid
Selects the first row as current column in grid
Selects the last column as current column in grid
Selects the last row as current row in grid
Selects the next column as current column in grid
Selects the override.
protected virtual bool SelectOverride(GridViewRowInfo row, GridViewColumn column)
The row.
columnGridViewColumnThe column.
Returns:Selects the previous column as current column in grid
Selects the specified row as current row in grid
public virtual bool SelectRow(GridViewRowInfo row)
The GridViewRowInfo to be selected
Returns:true if successfull.
Implements:
Sets the selected cell.
protected virtual void SetSelectedCell(GridViewRowInfo row, GridViewColumn column)
The row.
columnGridViewColumnThe column.