Author Topic: Token/Mark in Title Rows and Total rows  (Read 2229 times)

omerix

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 148
    • View Profile
Token/Mark in Title Rows and Total rows
« on: December 04, 2019, 04:09:13 am »
Hello,

I am actively using the Grouping and Pivot table.

Group and Pivot tables. First rows of the first cell "pq-group-title-cell" class is added.

But the total lines do not have this feature.

My client wants me with the title and total lines in different fonts.

Can I offer a solution?

The code I use for title.

Code: [Select]
,complete: function(){
     $('.pq-group-title-cell').parent('div').css('backgroundColor', '#a9d08e');
}

Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Token/Mark in Title Rows and Total rows
« Reply #1 on: December 04, 2019, 11:57:43 am »
Result of using jquery css method to manipulate styles won't persist because of virtual rendering in grid whereby the rows / cells are created and destroyed as the view is scrolled.

Please check this demo to learn application of conditional styles.

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

Please let me know if you need further assistance.