ParamQuery

General Category => Help for ParamQuery Pro => Topic started by: hideki.yoshikura on April 08, 2021, 10:24:12 am

Title: About row filter specifications
Post by: hideki.yoshikura 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?
Title: Re: About row filter specifications
Post by: paramvir 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.
Title: Re: About row filter specifications
Post by: hideki.yoshikura 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.