This is a migrated thread and some comments may be shown as answers.

Redundant "header" cells in row area

3 Answers 56 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Won
Top achievements
Rank 1
Won asked on 22 Dec 2015, 09:21 PM

Please see the attached image for an example.

Is there a way I can get rid of or hide the extra header cells in the row area?

For example, let's say my data source is a JSON object similar to:

[{"MAIN NAME": "MAIN NAME 2", "SUBNAME": "SUBNAME 1}, {"MAIN NAME": "MAIN NAME 2, "SUBNAME": "SUBNAME 2"}]

For example,  can I combine the cells for SUBNAME and SUBNAME1?

As it is, the extra MAIN NAME and SUBNAME cells being rendered are taking up a lot of horizontal real estate.

Thanks

3 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 24 Dec 2015, 09:56 AM
Hi Won,

Set expand: false for your rows in the configuration of your kendoPivotGrid.
rows: [{ name: "Field1", expand: false }]
In this case they will be collapsed by default and not take the extra horizontal space.

Regards,
Vasil
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Won
Top achievements
Rank 1
answered on 24 Dec 2015, 01:42 PM

Hi Vasil, thanks for the reply.

 Setting the expand: false only hides the issue though - if the user drills down, they still see the additional "header" rows cells.

Essentially there are two cells being created in the row for each field - the name of the field itself (i.e. "City", and the value of the field "New York".

 Please see the attached screenshots. The first (sample0.png) is how it is right now. The second (sample1.png) is what I'm trying to achieve.

Thanks,

0
Alex Gyoshev
Telerik team
answered on 25 Dec 2015, 11:30 AM

Hello Won,

I am afraid that this functionality is not supported by the widget at this time.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
PivotGrid
Asked by
Won
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Won
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or