Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

[Bug] When changing filters programatically only the last filter is applied #105

Description

@TimoSchmuck

I want to set more than one filter programatically. For one filter it is working as expected, but not for more. Only the last filter is applied.

Steps to reproduce the bug:
Have two columns in PlutoGrid and then changing two filters at the same time via the eventManager is not working.

WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
      stateManager!.eventManager!.addEvent(
        PlutoGridChangeColumnFilterEvent(
            column: column[0],
            filterType: const PlutoFilterTypeContains(),
            filterValue:  'columnFilter0'
            debounceMilliseconds:
                stateManager!.configuration.columnFilter.debounceMilliseconds),
        );
        stateManager!.eventManager!.addEvent(
          PlutoGridChangeColumnFilterEvent(
              column: column[1],
              filterType: const PlutoFilterTypeContains(),
              filterValue: 'columnFilter1',
              debounceMilliseconds:
                  stateManager!.configuration.columnFilter.debounceMilliseconds),
        );
});

Execution Environment

Flutter 3.24.5 • channel stable • https://github.com/flutter/flutter.git
Dart 3.5.4 
DevTools 2.37.3

PlutoGrid version
pluto_grid_plus: ^8.4.3

OS
web

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions