bosskmk / pluto_grid

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
637 stars 291 forks source link

[Help] Callback when filtering #919

Closed ThiruDev50 closed 9 months ago

ThiruDev50 commented 10 months ago

Is there any methods available that will get trigger when filter applies?

design2023 commented 10 months ago

You can add a listener and check the flag hasFilter :

 onLoaded: (PlutoGridOnLoadedEvent event) {
                      stateManager = event.stateManager;
                      event.stateManager.addListener(_handleFilterChange);

                      event.stateManager.setShowColumnFilter(true);
                    },

                   .......

                   void _handleFilterChange() {
                              if(stateManager.hasFilter){
                             print("Check here ");
                          }
                  } 
github-actions[bot] commented 9 months ago

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

github-actions[bot] commented 9 months ago

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