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.

[Help] - How to force a refresh of the content #8

Description

@boeledi

Hi,

First of all, many thanks for maintaining this package.

I have been looking everywhere for a solution to force a refresh of the content of the grid but could not find any "official one".

Case study:

  • I have a form to create a new entry or edit an existing one

Via an external form, I am creating/editing an item that I save at the server side.
Because the grid is a view that combines several entities, I cannot directly add a row, or even update an existing one.

This explains why I would really like to force a refresh (aka a fetch).

The only solution I could find was to update the PlutoLazyPaginationState and make it external, so that I can use a GlobalKey and invoke the key.currentState?.setPage(1);
But this is not ideal.

Many thanks

Activity

  1. RADeveloping commented on Feb 18, 2024

    @RADeveloping

    Try using the setFilter method on the PlutoGridStateManager.

    stateManager.setFilter((final element) => true);

  2. doonfrs commented on Feb 18, 2024

    @doonfrs
    Owner

    if key.currentState?.setPage(1); works why do you think it is not ideal?

  3. Repository owner locked and limited conversation to collaborators on Feb 18, 2024
  4. converted this issue into a discussion #10 on Feb 18, 2024
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

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions