ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: gopigupta on December 01, 2023, 04:50:16 pm

Title: Tree grid does not show data in correct sort when filter is applied
Post by: gopigupta on December 01, 2023, 04:50:16 pm
Hello,

I am facing issue in tree grid. Filtering column does change the sort order i.e. row position. I am able to generate same issue in demo site(https://paramquery.com/pro/demos/treegrid_filter). Below are steps to reproduce the issue.

1. Go to tree grid demo site - https://paramquery.com/pro/demos/treegrid_filter
2. Check the sort order of first column(Name). "changes.txt" is appearing above "license.txt" under parent "Apache"(Attached ScreenShot1)
3. Filter 1st column by "license.txt". Only "license.txt" will appear under parent "Apache"(Attached ScreenShot2)
4. Now, filter 1st column by word "txt". You will notice that "changes.txt" is now appearing below "license.txt" (Attached ScreenShot3)

If we remove filter then again column will appear with correct sort.

Please help to resolve this issue and do let me know if you need more info.

Thanks.
 
Title: Re: Tree grid does not show data in correct sort when filter is applied
Post by: paramvir on December 04, 2023, 01:42:27 pm
Please use filterModel.hideRows = true
Title: Re: Tree grid does not show data in correct sort when filter is applied
Post by: gopigupta on December 04, 2023, 05:09:29 pm
Thanks for quick reply. How can we get filtered data from this.option('dataModel.data') when filterModel.hideRows is set to true.

Thanks.
Title: Re: Tree grid does not show data in correct sort when filter is applied
Post by: gopigupta on December 04, 2023, 05:37:12 pm
I got the answer. By using pq_hidden === false.

Thanks