-
Notifications
You must be signed in to change notification settings - Fork 906
Closed
Labels
data gridData grid componentData grid componentsolvedSolved the query using existing solutionsSolved the query using existing solutions
Description
I tried various ways and I couldn't resize the column. My code is as follows
SfDataGrid(
onColumnResizeUpdate: (details) {
logger.i("resize ${details.width}");
return true;
},
onColumnResizeStart: (ColumnResizeStartDetails details) {
logger.i("resize ${details.width}");
return true;
},
onColumnResizeEnd: (details) {
logger.i("resized!");
},
headerRowHeight: 32,
rowHeight: 32,
columnResizeMode: ColumnResizeMode.onResizeEnd,
columnWidthMode: ColumnWidthMode.none,
// columnWidthMode: ColumnWidthMode.fill,
allowColumnsResizing: true,
allowColumnsDragging: true,
allowSorting: true,
allowEditing: true,
// allowFiltering: true,
source: dataSource,
columns: [
GridColumn(
columnName: 'name',
autoFitPadding: EdgeInsets.zero,
minimumWidth: 100,
maximumWidth: 300,
allowEditing: true,
allowSorting: true,
label: const Align(
alignment: Alignment.centerLeft,
child: Text("name"),
),
),
GridColumn(
columnName: 'description',
minimumWidth: 300,
autoFitPadding: EdgeInsets.zero,
maximumWidth: 500,
allowSorting: false,
label: const Align(
alignment: Alignment.centerLeft,
child: Text("description"),
),
),
GridColumn(
columnName: 'type',
minimumWidth: 300,
autoFitPadding: EdgeInsets.zero,
allowSorting: false,
label: const Align(
alignment: Alignment.centerLeft,
child: Text("type"),
),
),
GridColumn(
columnName: 'isNullable',
autoFitPadding: EdgeInsets.zero,
width: 60,
allowSorting: false,
label: const Align(
alignment: Alignment.center,
child: Text("isNullable"),
),
),
GridColumn(
columnName: "assignment",
width: 60,
allowSorting: false,
label: const Align(
alignment: Alignment.center,
child: Text("assignment"),
),
),
],
),
Metadata
Metadata
Assignees
Labels
data gridData grid componentData grid componentsolvedSolved the query using existing solutionsSolved the query using existing solutions