Author Topic: How to class/style a cell in Manual Summary Row  (Read 2386 times)

rsgmedia

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 50
    • View Profile
How to class/style a cell in Manual Summary Row
« on: March 14, 2017, 01:54:14 am »
Hi,

We have a requirement to show a couple of summary rows in the bottom of the grid based on custom calculation. We use summaryData option as described in the Manual Summary from the Demos. It is working as expected, but we also need to color the summary cells based on some condition. Currently there is no option to style a cell. Only pq_rowcls option is there to style the entire summary row.

A working example or a sample code is really appreciated. Please let us know if you need more information.

Thanks in advance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to class/style a cell in Manual Summary Row
« Reply #1 on: March 14, 2017, 10:16:09 am »
Conditional styles/classes can be applied to individual summary cells in column.render callback similar to other cells.

Please take help of these 2 examples:

https://paramquery.com/pro/demos/summary_json

https://paramquery.com/pro/demos/condition_style

rsgmedia

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 50
    • View Profile
Re: How to class/style a cell in Manual Summary Row
« Reply #2 on: March 21, 2017, 08:50:14 pm »
Thanks for the help. That's exactly what we were looking for.