ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started 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.
-
Please use filterModel.hideRows = true
-
Thanks for quick reply. How can we get filtered data from this.option('dataModel.data') when filterModel.hideRows is set to true.
Thanks.
-
I got the answer. By using pq_hidden === false.
Thanks