Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request? Need some features #18

Open
mohamedridzwan786 opened this issue Nov 25, 2021 · 2 comments
Open

Feature request? Need some features #18

mohamedridzwan786 opened this issue Nov 25, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mohamedridzwan786
Copy link

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?

@Dev-Owl
Copy link
Owner

Dev-Owl commented Nov 28, 2021

You can do empty rows right now, just return an empty row from the data source. For the others, it looks like best would be to internally use datatable2. That might be a major change, I hope to get some more time in the upcoming holiday season to focus on this package.

@Dev-Owl Dev-Owl added enhancement New feature or request help wanted Extra attention is needed labels Nov 28, 2021
@dabbinavo
Copy link

For everyone coming accross this issue - DataTable2 now has experimental support for async rows:
https://pub.dev/documentation/data_table_2/latest/data_table_2/AsyncPaginatedDataTable2-class.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants