pluto_grid icon indicating copy to clipboard operation
pluto_grid copied to clipboard

[Bug] Pluto Column won't freeze first column programatically

Open mrgithub opened this issue 2 years ago • 1 comments

When I freeze the first column it is not visually frozen but the menu bar says it is when clicked. State manager says it's not frozen. No frozen columns are bigger than 200. I don't understand why it doesn't work.

First column looks like this:

 List<PlutoColumn> get columns {
    return <PlutoColumn>[
      PlutoColumn(
        title: 'Date',
        field: 'date',
        type: PlutoColumnType.date(format: "dd MMM"),
        readOnly: true,
        backgroundColor: Colors.black,
        enableColumnDrag: false,
        enableRowDrag: false,
        enableSorting: false,
        frozen: PlutoColumnFrozen.start,   // this should freeze it and should be enough
        titleSpan: getTitleSpan('Date'),
      ),

onLoaded looks like this:

onLoaded: (PlutoGridOnLoadedEvent event) {
                event.stateManager.setShowColumnFilter(false);
                event.stateManager.setColumnSizeConfig(
                    PlutoGridColumnSizeConfig(
                        autoSizeMode: PlutoAutoSizeMode.scale));
                event.stateManager.columns[0].frozen = PlutoColumnFrozen.start;   // tried to freeze it again just in case
                print("***frozen " + event.stateManager.showFrozenColumn.toString());  // shows false
              },

mrgithub avatar Jan 24 '24 02:01 mrgithub

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Feb 23 '24 11:02 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 08 '24 11:03 github-actions[bot]