ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: TeeJT on August 28, 2017, 09:26:42 am

Title: How to find which individual sub-group was collapsed?
Post by: TeeJT on August 28, 2017, 09:26:42 am
I am using your demo on Hide Groupby Columns at https://paramquery.com/pro/demos/group_rows_hidden
If every group is not collapsed and I only collapsed the sub-group Speedy Express under Yvonne Moncado under Argentina.
How can I know that this is the only collapsed sub-group?
I pass the information to server where I produce the pdf file so I need to know which sub-group was collapsed.
Title: Re: How to find which individual sub-group was collapsed?
Post by: paramvir on August 28, 2017, 12:22:01 pm
Every row has group related meta data associated with it.

When  sub-group Speedy Express is collapsed under Yvonne Moncado under Argentina.

the following properties are added to the row.

pq_close: true ( true when collapsed )
pq_level: 2

And all the group data can be obtained by pageData() method.  https://paramquery.com/pro/api#method-pageData
Title: Re: How to find which individual sub-group was collapsed?
Post by: TeeJT on August 28, 2017, 01:00:29 pm
Thank you for the information.