Author Topic: About row filter specifications  (Read 1399 times)

hideki.yoshikura

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
About row filter specifications
« on: April 08, 2021, 10:24:12 am »
We are using Param Query version 6.2.4.
If I call the addRow() method with the row filtered and then un-filter the row, the added row will be moved to the top.
Also, if I add an element to the row data retrieved with pq.gridT.instance.getData() while the row is filtered, and then call the refresh() method, the data will not be updated. (In the unfiltered state, the row will be added.)
Is it a specification that rows added when filtering will be moved to the top after the filter is removed?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: About row filter specifications
« Reply #1 on: April 08, 2021, 11:45:45 am »
By default when row is added in filtered state, its position is unspecified when filter is removed or changed.

Please use filterModel.hideRows = true to retain the position of added or inserted rows wrt filtering.
« Last Edit: April 08, 2021, 12:15:14 pm by paramvir »

hideki.yoshikura

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: About row filter specifications
« Reply #2 on: April 08, 2021, 12:13:26 pm »
Thank you.
I was able to do what I wanted to do in the way you taught me.