Hi All,
I have created a page using pivot table and I want to create a button that can expand all the rows and columns.
Do anyone here know how to do that?
Regards,
Rinaldi
I have created a page using pivot table and I want to create a button that can expand all the rows and columns.
Do anyone here know how to do that?
Regards,
Rinaldi
7 Answers, 1 is accepted
0
Hello Rinaldi,
I would suggest you use the PivotDataSource expandColumn/expandRow methods:
The expand methods expects dimension path. That is why you need to define the full path for the second dimension.
Give a try and let me know how it goes.
Regards,
Georgi Krustev
Telerik
I would suggest you use the PivotDataSource expandColumn/expandRow methods:
var pivotDataSource = $("#pivotgrid").data("kendoPivotGrid").dataSource;
pivotDataSource.expandColumn(["Category"]);
pivotDataSource.expandColumn(["Category","SubCategory"]); //second dimension
pivotDataSource.expandRow(["Division"]);
pivotDataSource.expandRow(["Division", "Channel"]); //second dimension
The expand methods expects dimension path. That is why you need to define the full path for the second dimension.
Give a try and let me know how it goes.
Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Oaww
Top achievements
Rank 1
answered on 15 Jun 2015, 01:31 PM
hello,
But If need to expand all Column & Rows,it seems to do
["Division&B2B","Channel"] and so on...not expand all rows & columns,just the summary row & summary column
0
Hi,
Yes, if you would like to expand the second dimensions of each member of the first dimension, you will need to execute the expandRow/expandColumn with the specific member path.
Regards,
Georgi Krustev
Telerik
Yes, if you would like to expand the second dimensions of each member of the first dimension, you will need to execute the expandRow/expandColumn with the specific member path.
Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Bruno Larose
Top achievements
Rank 2
answered on 16 Sep 2015, 05:43 PM
Is there any other way to expand all further then expanding path by path?
0
Hello Bruno,
I am afraid that currently widget cannot execute batch expand operations to SSAS instance. The only solution is to expand the dimensions level by level:
Regards,
Georgi Krustev
Telerik
I am afraid that currently widget cannot execute batch expand operations to SSAS instance. The only solution is to expand the dimensions level by level:
Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Webster Velasco
Top achievements
Rank 2
answered on 03 May 2017, 01:49 PM
is there a way to get all possible path with current version in order to expand everything?
like this http://orbjs.net/
0
Hi,
You could try to retrieve the paths from the expand/collapse icons through the data-path attribute:
Hope this helps.
Regards,
Konstantin Dikov
Telerik by Progress
You could try to retrieve the paths from the expand/collapse icons through the data-path attribute:
<
span
class
=
"k-icon k-i-arrow-e"
data-path
=
"["[Geography].[City].[All Geographies]"]"
></
span
>
Hope this helps.
Regards,
Konstantin Dikov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.