ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: mikep on August 17, 2023, 09:30:54 pm

Title: savestate column order not saving/rendering when column grouping applied
Post by: mikep on August 17, 2023, 09:30:54 pm
saveState and loadState work fine when column grouping is not applied, but when I have a column grouping, the column order (of non-grouped columns) does not get applied. Is there a good way to deal w/this or do I need to remove column grouping?
Title: Re: savestate column order not saving/rendering when column grouping applied
Post by: paramvir on August 18, 2023, 04:57:06 pm
Column order via loadState is not supported for grouped columns currently.
Title: Re: savestate column order not saving/rendering when column grouping applied
Post by: mikep on August 21, 2023, 10:32:21 pm
thank you for confirming.

I will remove the column group. Is it possible to set background color for column headers to help distinguish them.
or
Is it possible to read the column order from the grid state and apply this order once gridstate (with the column grouping) has been applied.
Title: Re: savestate column order not saving/rendering when column grouping applied
Post by: paramvir on August 22, 2023, 02:24:48 pm
Yes it's possible to set background color or assign any style to column header cells with column.styleHead option.

https://paramquery.com/pro/api#option-column-styleHead
Title: Re: savestate column order not saving/rendering when column grouping applied
Post by: mikep on August 01, 2024, 11:35:49 pm
Is the column order via loadState still not supported for grouped columns? User's love the ability to save column order and love column grouping.
Could you recommend an approach to apply both?
Is it possible to read the grid's loadState and get its column ordering and then add the columns in that order to the grid's column collection based on what's in LoadState?
Title: Re: savestate column order not saving/rendering when column grouping applied
Post by: paramvir on August 02, 2024, 08:36:04 pm
I understand your requirement, have added it to the roadmap.