XGridDataSource<T extends XFDataItem> class

Inheritance

Constructors

XGridDataSource(List<T> items, XView view)

Properties

cellInEdit_Value ↔ dynamic
getter/setter pair
dataGridRows List<XDataGridRow>
getter/setter pair
effectiveRows List<DataGridRow>
Return the copy of the DataGridSource.rows. It holds the sorted collection if the sorting is applied in DataGrid.
no setterinherited
filterConditions Map<String, List<FilterCondition>>
Holds the collection of FilterCondition based on the columns.
no setterinherited
groupedColumns List<ColumnGroup>
The collection of ColumnGroup to be grouped in the SfDataGrid.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
list List<T>
getter/setter pair
rows List<XDataGridRow>
The collection of rows to display in SfDataGrid.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortedColumns List<SortColumnDetails>
The collection of SortColumnDetails objects to sort the columns in SfDataGrid.
no setterinherited
view XView
getter/setter pair

Methods

addColumnGroup(ColumnGroup columnGroup) → void
Call this method to add a specified ColumnGroup to the column grouping.
inherited
addFilter(String columnName, FilterCondition filterCondition) → void
Call this method to add the FilterCondition programmatically.
inherited
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
buildEditWidget(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column, CellSubmit submitCell) Widget?
Called to obtain the widget when a cell is moved into edit mode.
buildGroupCaptionCellWidget(RowColumnIndex rowColumnIndex, String summaryValue) Widget?
Called to obtain each cell in the caption summary row.
inherited
buildRow(DataGridRow row) → DataGridRowAdapter?
Called to obtain the widget for each cell of the row.
buildTableSummaryCellWidget(GridTableSummaryRow summaryRow, GridSummaryColumn? summaryColumn, RowColumnIndex rowColumnIndex, String summaryValue) Widget?
Called to obtain the widget for each cell of the table summary row.
inherited
calculateSummaryValue(GridTableSummaryRow summaryRow, GridSummaryColumn? summaryColumn, RowColumnIndex rowColumnIndex) String
Calculates the summary value for the table summary row of a specific column.
inherited
canSubmitCell(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column) Future<bool>
Called whenever the cell’s editing is completed i.e. prior to onCellSubmit method.
clearColumnGroups() → void
Clear all the ColumnGroup from the column grouping.
inherited
clearFilters({String? columnName}) → void
Clear the FilterCondition from a given column or clear all the filter conditions from all the columns.
inherited
compare(DataGridRow? a, DataGridRow? b, SortColumnDetails sortColumn) int
Called when the sorting is applied for column. This method compares the two objects and returns the order either they are equal, or one is greater than or lesser than the other.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
get_ItemPropValue(RowColumnIndex rowColumnIndex, GridColumn column) → dynamic
getDataGridRow(XFDataItem item) XDataGridRow
handleLoadMoreRows() Future<void>
Called when LoadMoreRows function is called from the SfDataGrid.loadMoreViewBuilder.
inherited
handlePageChange(int oldPageIndex, int newPageIndex) Future<bool>
Called when the page is navigated.
inherited
handleRefresh() Future<void>
Called when the swipe to refresh is performed in SfDataGrid.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDataSourceListeners({RowColumnIndex? rowColumnIndex}) → void
Calls all the datagrid source listeners. Call this method whenever the underlying data is added or removed. If the value of the specific cell is updated, call this method with RowColumnIndex argument where it refers the corresponding row and column index of the cell.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onCellBeginEdit(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column) bool
Called whenever the cell is moved into edit mode.
onCellCancelEdit(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column) → void
Called when you press the LogicalKeyboardKey.escape key when the DataGridCell on editing to cancel the editing.
onCellSubmit(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column) Future<void>
Called whenever the cell’s editing is completed.
performGrouping(String columnName, DataGridRow row) String
Called when grouping is applied to the SfDataGrid.groupedColumns.
inherited
performSorting(List<DataGridRow> rows) Future<void>
Called when the sorting is applied to the column.
inherited
removeColumnGroup(ColumnGroup columnGroup) → void
Call this method to remove a specified ColumnGroup from the column grouping.
inherited
removeFilter(String columnName, FilterCondition filterCondition) → void
Remove the FilterCondition from the given column.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
set_ItemPropValue(RowColumnIndex rowColumnIndex, GridColumn column, dynamic value) → dynamic
shouldRecalculateColumnWidths() bool
Called whenever you call notifyListeners or notifyDataSourceListeners in the DataGridSource class. If you want to recalculate all columns width (may be when underlying data gets changed), return true.
inherited
sort() Future<void>
Call this method when you are adding the SortColumnDetails programmatically to the DataGridSource.sortedColumns.
inherited
toString() String
A string representation of this object.
inherited
xBuilder_XCell(DataGridCell item, XDataGridRow xGridDataRow) Widget?
xBuilder_XCell_InEdit(DataGridCell gridCell, XDataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column, CellSubmit submitCell) Widget?
settare il value in cellInEdit_Value e chiamare submitCell()
xBuildRow(XDataGridRow row) → DataGridRowAdapter?
xCanSubmitCell(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column) Future<bool>
xOnCellCancelEdit(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column) → void
xOnCellSubmit(XDataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) → DataGridRow
An indexer to retrieve the data from the underlying datasource. If the sorting is applied, the data will be retrieved from the sorted datasource.
inherited