ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: iamgsprabhu on May 20, 2016, 05:49:36 pm

Title: How do I disable the Master/child indicator, if the child datasource is empty ?
Post by: iamgsprabhu on May 20, 2016, 05:49:36 pm
I am working with the nested grids, and I would like to hide/disable the detail grid and indicator (ui-icon-plus) when the child datasource returns empty.

How can I acheive this ?

thanks
Prabhu
Title: Re: How do I disable the Master/child indicator, if the child datasource is empty ?
Post by: paramvir on May 23, 2016, 10:59:31 am
I'm afraid it's not feasible in version 2.0.4
Title: Re: How do I disable the Master/child indicator, if the child datasource is empty ?
Post by: iamgsprabhu on May 23, 2016, 07:58:33 pm
Atleast is there a way to disable the indicator (+) ?

I'm afraid it's not feasible in version 2.0.4
Title: Re: How do I disable the Master/child indicator, if the child datasource is empty ?
Post by: paramvir on May 23, 2016, 08:17:28 pm
It's not a nice solution but if you could loop through the rows ( $tr ) in grid with jQuery in refresh event, you could disable the unwanted + icons by directly setting display: 'none' or visibility: hidden.

rowData can be obtained from $tr by getRowData() and getRowIndx() methods and you could mark the rows with unwanted + by adding some property to rowData.