Author Topic: can hide group title row ?  (Read 2042 times)

JohnLee

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 4
  • Zionex
    • View Profile
can hide group title row ?
« on: December 01, 2020, 06:32:13 am »
Hi..

I want to hide the group title rows that have only one data row.

Is it possible to make it?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: can hide group title row ?
« Reply #1 on: December 02, 2020, 04:18:54 pm »
Code: [Select]
dataReady: function(){
this.pageData().forEach(function(rd){
if( rd.pq_gtitle && rd.children.length==1){ //if group title row and only one child.
rd.pq_htfix = rd.pq_ht = 0.1; //assign very little height to it to effectively hide it.
}
})
},

JohnLee

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 4
  • Zionex
    • View Profile
Re: can hide group title row ?
« Reply #2 on: December 23, 2020, 12:17:46 pm »
It works well~~

Thank you for helping.