ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: JohnLee on December 01, 2020, 06:32:13 am

Title: can hide group title row ?
Post by: JohnLee 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?
Title: Re: can hide group title row ?
Post by: paramvir 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.
}
})
},
Title: Re: can hide group title row ?
Post by: JohnLee on December 23, 2020, 12:17:46 pm
It works well~~

Thank you for helping.