We have a requirement for a grid to retain current pagination and filter criteria on section refresh. Is this behavior expected? or can we do anything to retain the state of grid. @RichardMarsot
Exact use case is we launch a modal dialog on click of a button in a section which contains grid as well. Based on the items user has selected in the grid, the Modal dialog flow performs some operation on the grid items like changing some values. Now, once we submit the modal dialog we do a section refresh, which resets the filters and current page which user is viewing.
Perform the following local change:
Use Refresh List to maintain the Pagination, Sorting, or Filtering state of the repeating grid.
Optionally, use Advanced Pagination to maintain the state of the repeating grid with Reload Section. You must write custom logic to achieve the pagination you want.
Posted: 2 years ago
Posted: 14 Jan 2021 7:50 EST
Richard Marsot (RichardMarsot)
Senior Director, Shared User Services Engineering
@Avinash.Haridasu do you have a screenshot or design of what you are trying to achieve? Are the data entered in the modal dialog changing multiple rows in the table or only a single row? If your button that triggers the show local action is in the same section as the table, the table will be reloaded completely once the modal is submitted. To avoid this behavior, you would want to move the button inside its own section and on close of the modal add a run data transform to make the clipboard update based on the content of the modal and then use the refresh list action to refresh the table while keeping the state of the table related to pagination or filters.
Posted: 2 years ago
Posted: 22 Jan 2021 2:16 EST
Avinash Haridasu (Avinash.Haridasu)
We have a parent section, with two sections ModalDialogSection, TableSection. ModalDialogSection has a button to launch the modal dialog and on submit of it we are refreshing the TableSection section, which has the grid configured.
Now, the usecase is the rows of table in TableSection should refresh, but the filter and pagination should be retained.