PaginatedDataTable2(
smRatio: smRatio,
lmRatio: lmRatio,
actions: actions,
rowsPerPage: this.rowsPerPage,
columns: columns,
source: source,
dataRowHeight: 32,
headingRowHeight: 36.0,
// onRowsPerPageChanged: (value) => onRowsPerPageChanged,
initialFirstRowIndex: initialFirstRowIndex,
onPageChanged: (rowIndex) => onPageChanged,
header: Text(headerText, style: TextStyle(fontWeight: FontWeight.bold)),
showCheckboxColumn: false,
horizontalMargin: 20,
checkboxHorizontalMargin: 12,
columnSpacing: 0,
wrapInCard: false,
minWidth: 800,
fit: FlexFit.tight,
border: TableBorder(
top: BorderSide(color: Colors.grey[300]!),
bottom: BorderSide(color: Colors.grey[300]!),
left: BorderSide(color: Colors.grey[100]!),
right: BorderSide(color: Colors.grey[100]!),
verticalInside: BorderSide(color: Colors.grey[100]!),
horizontalInside: BorderSide(color: Colors.grey[100]!, width: 1),
),
// TODO: set this up
// sortColumnIndex: _sortColumnIndex,
// sortAscending: _sortAscending,
empty: DatatableNoData(title: 'No data'),);
Advanced datatable is best for server side pagination, however is it possible to include these features?
empty rows,border,fit,smratio,lmratio,column width, row, width and some of the features from paginated datatable2?
PaginatedDataTable2(
smRatio: smRatio,
lmRatio: lmRatio,
actions: actions,
rowsPerPage: this.rowsPerPage,
columns: columns,
source: source,
dataRowHeight: 32,
headingRowHeight: 36.0,
// onRowsPerPageChanged: (value) => onRowsPerPageChanged,
initialFirstRowIndex: initialFirstRowIndex,
onPageChanged: (rowIndex) => onPageChanged,
header: Text(headerText, style: TextStyle(fontWeight: FontWeight.bold)),
showCheckboxColumn: false,
horizontalMargin: 20,
checkboxHorizontalMargin: 12,
columnSpacing: 0,
wrapInCard: false,
minWidth: 800,
fit: FlexFit.tight,
border: TableBorder(
top: BorderSide(color: Colors.grey[300]!),
bottom: BorderSide(color: Colors.grey[300]!),
left: BorderSide(color: Colors.grey[100]!),
right: BorderSide(color: Colors.grey[100]!),
verticalInside: BorderSide(color: Colors.grey[100]!),
horizontalInside: BorderSide(color: Colors.grey[100]!, width: 1),
),
// TODO: set this up
// sortColumnIndex: _sortColumnIndex,
// sortAscending: _sortAscending,
empty: DatatableNoData(title: 'No data'),);
Advanced datatable is best for server side pagination, however is it possible to include these features?
empty rows,border,fit,smratio,lmratio,column width, row, width and some of the features from paginated datatable2?