ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: mukul on February 25, 2014, 12:22:13 pm

Title: Row Grouping
Post by: mukul on February 25, 2014, 12:22:13 pm
Hi,

I am displaying the products in grid, within order.
A order can have more than one product so I am looking to group the order if there is more than one product.

I am using the below code

groupModel:{
            dataIndx: ["task_number"],               
            collapsed: [ false, false],
            title: ["<b style='font-weight:bold;'>{0} ({1} Products)</b>","{1} - {2}"],
            dir: ["up","down"]
            ,icon: ["circle-plus"]
            }

But it is grouping also the order which have only single product.

Any suggestion.

Thanks in advance.
Title: Re: Row Grouping
Post by: paramvir on February 25, 2014, 04:16:45 pm
grouping applies to all the records irrespective of number of child records. I don't see any way to avoid that in case of one child.
Title: Re: Row Grouping
Post by: paramvir on March 14, 2014, 05:14:49 pm
Mukul

I got this question again from your team member.

Even though there is no inbuilt option to do it, it could be done (unofficially) with jQuery DOM manipulation.

Using DOM inspector, find the class of the + icon

In refresh event hide the + icons.