[]
        
(Showing Draft Content)

C1.Blazor.Grid.GridControlAdapter

GridControlAdapter Class

Implements the functionality to create grid cells dynamically.

Inheritance
GridControlAdapter
Namespace: C1.Blazor.Grid
Assembly: C1.Blazor.GridControl.dll
Syntax
public class GridControlAdapter

Constructors

Name Description
GridControlAdapter()

Initializes a new instance of the GridControlAdapter class.

Properties

Name Description
ColumnsCount

Gets the total number of columns.

DefaultColumn

Gets the default column dimensions.

DefaultRow

Gets the default row dimensions.

Grid

Gets the associated grid.

IsCellSelection

Gets whether the selection is composed by cells.

IsColumnSelection

Gets whether the selection is composed by all the cells of the columns.

IsMouseOverEnabled

Gets whether the mouse-over state is reflected in the cells.

IsMultiRangeSelection

Gets whether the selection can be composed by non-contiguous ranges of cells.

IsMultipleSelection

Gets whether the selection can be a range of cells.

IsRowSelection

Gets whether the selection is composed by all the cells of the rows.

IsSelectionEnabled

Gets whether there is any selection possible in the grid.

NavigableRange

Gets the range of cells where a user can navigate with the keyboard as well as edit and select cells

RowsCount

Gets the total number of rows.

Methods

Name Description
AllowEditing(GridControlRange)

Returns true when the cell in the specified range can be edited.

ApplySelectedTimesVisualEffect(int, C1Style)

Modifies the cell's style to visually reflect the count of the cell's selection.

ApplySelectionState(GridControlRange, C1Style)

Applies the selection brushes.

CanDragColumn(int, int)

Determines whether the column can be dragged.

CanDragRow(int, int)

Determines whether the row can be dragged.

CanDropColumn(int, int)

Determines whether the from column can dropped at the to position.

CanDropRow(int, int)

Determines whether the from row can dropped at the to position.

CanSetColumnWidth(int, int)

Determines whether the width of a column can be set.

CanSetRowHeight(int, int)

Determines whether the height of the row can be set.

Contains(GridControlAdapter)

Returns true if the specified adapter is the same instance as this or if it is one of the nested adapters.

DropColumnAsync(int, int)

Drops the column from the original index from to the index to.

DropRowAsync(int, int)

Drops the row from the original index from to the index to.

GetBorderClasses(GridLinesVisibility, C1Thickness)

Gets the CSS classes that need to be applied to display the specified gridLinesVisibility and internalBorders.

GetCellContentRenderFragment(GridControlRange)

Returns the fragment to show inside the cell at the specified range.

GetCellCssClasses(GridControlRange, C1Thickness)

Gets the CSS classes that will be applied to the cell.

GetCellEditorFragment(GridControlRange, Action<ComponentBase>)

Creates the cell editor.

GetCellText(GridControlRange)

Gets the text representing the content of a cell.

GetCellTitle(GridControlRange)

Gets the title attribute that will be applied to the cell.

GetColumnInfo(int)

Gets the dimensions for the specified column.

GetColumnOffset(int)

Gets the distance between the origin and the specified column.

GetColumnOffset(int, int)

Gets the distance between the two specified columns.

GetColumnRenderWidth(int)

Gets the render width of the specified column.

GetDefaultColumn()

Gets the default column dimensions.

GetDefaultRow()

Gets the default row dimensions.

GetFrozenBottomRows()

Gets the number of frozen rows at the bottom.

GetFrozenColumns()

Gets the number of frozen columns.

GetFrozenRows()

Gets the number of frozen rows.

GetHoverRange(int, int)

Gets range of cells from the coordinates of the hovered cell.

GetMergedRange(GridControlRange)

Gets a GridControlRange that specifies the merged extent of a cell.

GetRowInfo(int)

Gets the dimensions for the specified row.

GetRowOffset(int)

Gets the distance between the origin and the specified row.

GetRowOffset(int, int)

Gets the distance between the two specified rows.

GetRowRenderHeight(int)

Gets the render height of the specified row.

GetSelectedTimes(GridControlRange)

Gets the number of times a cell is selected.

GetSelectionRange(GridControlRange)

Gets the effective selection range from another range.

IsBottomFreezingSeparatorVisible()

Gets whether the bottom freezing separator is visible.

IsLeftFreezingSeparatorVisible()

Gets whether the left freezing separator is visible.

IsMouseOverRange(GridControlRange)

Gets whether the specified range is in mouse-over state.

IsTopFreezingSeparatorVisible()

Gets whether the top freezing separator is visible.

OnBeginningEdit(GridControlEditEventArgs)

Called when the editing of a cell is about to start.

OnCellDoubleTapped(GridControlTapEventArgs)

Called when a cell was double-tapped.

OnCellEditEnded(GridControlEditEventArgs)

Called after the editing of a cell ended.

OnCellEditEnding(GridControlEditEventArgs)

Called when the editing of a cell is about to end.

OnCellEditorCreated(ComponentBase)
OnCellLongPressed(GridControlTapEventArgs)

Called when a cell was long-tapped(Holding).

OnCellTapped(GridControlTapEventArgs)

Called when a cell was tapped.

OnColumnsChanged(GridControlAdapterNotifyChange)

Notifies the adapter there were changed in the model columns.

OnColumnsChanging(GridControlAdapterNotifyChange)

Notifies the adapter there will be changed in the model columns.

OnCursorChanged(GridControlRangeEventArgs)

Called after the cursor is changed.

OnCursorChanging(GridControlRangeEventArgs)

Called before the cursor is changed.

OnEditEnded(GridControlRange, ComponentBase, bool)

Called when the editing of a cell ended.

OnKeyDown(KeyboardEventArgs)

Called when the a keyboard key is pressed.

OnPrepareCellForEdit(GridControlEditEventArgs)

Called when the editing of a cell is about to start and the editor was already created.

OnResizedColumn(GridControlRangeEventArgs)

Called after a column is resized.

OnResizedRow(GridControlRangeEventArgs)

Called after a row is resized.

OnResizingColumn(GridControlRangeEventArgs)

Called before a column is resized.

OnResizingRow(GridControlRangeEventArgs)

Called before a row is resized.

OnRowsChanged(GridControlAdapterNotifyChange)

Notifies the adapter there were changes in the model rows.

OnRowsChanging(GridControlAdapterNotifyChange)

Notifies the adapter there will be changed in the model rows.

OnSelectionChanged(GridControlSelectionEventArgs)

Called after the selection is changed.

OnSelectionChanging(GridControlSelectionEventArgs)

Called when the selection is changing.

OnTextInput(ChangeEventArgs)

Called when the an text-input event happened.

PrepareCellStyle(GridControlRange, C1Style, C1Thickness)

Prepares the specified style for displaying the cell in the specified range.

RefreshSelectedRanges(IReadOnlyList<GridControlRange>)

Refreshes the grid according to the selected ranges.

SaveDesiredCellSize(GridControlRange)

Returns whether the desired size for a specific cell is taken into account.

SetCellValue(GridControlRange, object)

Sets the value of a specified cell.

SetColumnWidth(int, double)

Sets the width of the specified column.

SetRowHeight(int, double)

Sets the height of the row.