ParamQuery grid support forum

General Category => Bug Report => Topic started by: jim@solver.com on August 18, 2022, 05:24:16 am

Title: Group Sort not restored after multi-column sort is cleared
Post by: jim@solver.com on August 18, 2022, 05:24:16 am
I am currently using Pro version 8.5.0.

I have found an issue with group sorting not being restored to the original sort order after a multi-column sort is cleared.

I created a JSFiddle to demonstrate the issue using the following steps. https://jsfiddle.net/jhschmidt/bc8hmwo1/ (https://jsfiddle.net/jhschmidt/bc8hmwo1/)
Note: When the group is removed this sorting test works correctly.

I did some debugging and found that after Step 9. the internal pq_order sort is applied which the onCustomSortTree function uses. The group title rows do not have a pq_order property so the groups do not sort.

I hope this helps you track down this issue.

Thanks,
Jim
Title: Re: Group Sort not restored after multi-column sort is cleared
Post by: paramvir on August 18, 2022, 06:27:00 pm
Hi Jim

Thanks for sharing the steps, jsfiddle and debugging information :)

Looking into it.

Thanks
Param
Title: Re: Group Sort not restored after multi-column sort is cleared
Post by: paramvir on August 29, 2022, 05:27:30 am
This has been fixed in upcoming v8.6.0
Title: Re: Group Sort not restored after multi-column sort is cleared
Post by: jim@solver.com on September 08, 2022, 05:40:10 am
I tested the 8.6.0 version and the original sort order is returned after performing this test with nested JSON data. Thanks for the fix!