Author Topic: How to find which individual sub-group was collapsed?  (Read 2081 times)

TeeJT

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
How to find which individual sub-group was collapsed?
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: How to find which individual sub-group was collapsed?
« Reply #1 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

TeeJT

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
Re: How to find which individual sub-group was collapsed?
« Reply #2 on: August 28, 2017, 01:00:29 pm »
Thank you for the information.