Author Topic: can tree grid be pivoted?  (Read 1890 times)

徐雪峰

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 48
    • View Profile
can tree grid be pivoted?
« on: July 26, 2020, 08:38:04 am »
can tree grid be pivoted?
for example set the colgroup.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: can tree grid be pivoted?
« Reply #1 on: July 27, 2020, 08:38:33 am »
Column grouping: columns can be grouped for treegrid similar to normal grid with use of nested colModel.

Pivot: So far treegrid has never been pivoted. Please share your requirement of pivoting of treegrid and I would look into it.
« Last Edit: July 27, 2020, 08:51:58 am by paramvir »

徐雪峰

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: can tree grid be pivoted?
« Reply #2 on: July 27, 2020, 04:24:45 pm »
my goods data like under code:
goods_brand    goods_panentclass   goods_sonclass goodssonclass1 goodssonclass2...  salseamount   salesDate
BrandA             ClassA                    ClassA_a           ClassA_a_1       ClassA_a_1_1       10000            2019-01-01
BrandA             ClassA                    ClassA_a           ClassA_a_1       ClassA_a_1_2       10000            2020-01-01
BrandA>ClassA>ClassA_a>ClassA_a_1....
i want get every goods class's  summay of sales money. and summed by year,for example 2019 ,2020.
the class of goods is a tree structure.  every level summay is be hoped to sum.
are you have some good suggestion?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: can tree grid be pivoted?
« Reply #3 on: July 27, 2020, 10:57:39 pm »
That kind of data is used for row grouping, and yes row grouping can be converted into pivot grid as shown in the examples.
« Last Edit: July 28, 2020, 10:08:10 am by paramvir »