Refresh ReadOnly Grid

Certified Senior Developer

Hi all,

I am facing an issue related to data being refreshed in read-only grid.

The issue is in my read-only grid, I have navigated to a different page say 21-30. But after certain interval i.e., 30 sec my grid page navigates back to 1-10 automatically. I have a configuration of refresh Interval of 30 sec in the read-only grid. Does the grid refresh configuration update only the grid data or it also impacts the current fv!pagingInfo of the grid?

Reason to add refreshInterval was to update the grid data for user as soon as a new work item is created.

BTW the data field is a recordtype which allows me to use certain other features of grid.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    I will try to answer without seeing your code, I believe when you set a refreshInterval on a read-only grid it refreshes the entire grid and this includes the fv!pagingInfo. So every time the grid refreshes, in your case, every 30 seconds, it resets the pagingInfo to the default page (1-10), which is why you are seeing the navigation reset.

    I think it’s best you maintain the selected page manually using a local variable for pagingInfo, so that even after refresh, the grid retains the current page.

Reply
  • 0
    Certified Associate Developer

    I will try to answer without seeing your code, I believe when you set a refreshInterval on a read-only grid it refreshes the entire grid and this includes the fv!pagingInfo. So every time the grid refreshes, in your case, every 30 seconds, it resets the pagingInfo to the default page (1-10), which is why you are seeing the navigation reset.

    I think it’s best you maintain the selected page manually using a local variable for pagingInfo, so that even after refresh, the grid retains the current page.

Children
No Data