Author Topic: Row Grouping  (Read 2905 times)

mukul

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 9
    • View Profile
Row Grouping
« 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.
« Last Edit: March 14, 2014, 05:00:46 pm by paramquery »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Row Grouping
« Reply #1 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.
« Last Edit: March 14, 2014, 05:00:56 pm by paramquery »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Row Grouping
« Reply #2 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.