Author Topic: Show/Hide Rows  (Read 1814 times)

Syreta

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 19
    • View Profile
Show/Hide Rows
« on: December 05, 2018, 01:54:37 pm »
Hello,

I'm using the "pq_hidden" attribute for hiding or showing rows (depending on other data attributes), when the user clicks on specific mode options. This works fine! But there are two "issues":

- After hiding some rows, the "total records" value in the grid footer will not be updated by the new value.

- After hiding some rows, rows that are still showing, will stay on a second page, even though max entries count of rows per page is greater than the (new) total value of rows. For example: When I have 137 total rows and max. 100 rows per pages, I get two pages in the grid. After hiding 57 rows, there are still two pages in the grid, even though there should be only one page! And possibly some rows stays on the second page if they are shown on the second page before hiding some rows.

Are there ways to get these points fixed?

Thanks,
Syreta

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: Show/Hide Rows
« Reply #1 on: December 05, 2018, 02:40:27 pm »
Hiding the rows doesn't change the total number of rows or number of pages.

You need to use filtering to reduce total number of rows and number of pages.