Skip to content
Discussion options

You must be logged in to vote

You're absolutely right—Contember's DataGrid remembers its state (including filters and pagination) based on a key derived from the entity name and page name. This means that if you have multiple DataGrid components working with the same entity on a same page, they will share the same state by default, including pagination.

To resolve this, you have two options:

  1. Specify a unique dataViewKey
    If you want each grid to maintain its own independent state, you can set a custom key to differentiate them:

    <DataGrid 
        dataViewKey={`files-grid-${customKey}`}
        ...
    />

    Replace customKey with a unique identifier to ensure each grid has its own stored state.

  2. Disable state persistence for pagin…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kausik10
Comment options

Answer selected by kausik10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants