Author Topic: classes for pq_summary rows  (Read 1504 times)

MEngelbyPQ

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
classes for pq_summary rows
« on: March 05, 2020, 01:28:13 am »
I'm using PQ7.1 and want to style the summary rows when the group changes. Here is the code for the groupModel:
Code: [Select]
                groupModel: {
                    on: true, header: false,
                    dataIndx: ['siteabbr'], title: ["{0}"],
                    showSummary: [true],
                },
When I look at the DOM there are no classes identifying the summary rows.  The documentation says grouping adds properties to the rows of pq_gtitle, pq_gsummary, pq_grandsummary, pq_level, pq_close but I don't see how I can use that for CSS styles if those names don't show up in the DOM.

What is the preferred way to style summary rows in the grid given the latest version 7.1.0?

Figured it out.
Code: [Select]
                rowInit: function(ui) {
                    if (ui.rowData.hasOwnProperty('pq_gsummary') == true) {
                        return { cls: 'pq_summary' };
                    }
                },
« Last Edit: March 05, 2020, 01:52:07 am by MEngelbyPQ »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: classes for pq_summary rows
« Reply #1 on: March 05, 2020, 09:24:36 am »
Thanks, I'm glad you figured it out.