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

Sava current Layout Configuration

11 Answers 218 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Gus
Top achievements
Rank 2
Gus asked on 12 Feb 2015, 09:26 PM
Hello,

How I get the current layour of the configurator or pivot grid?

I need to save the last configuration to do by user (rows, columns,measures)

Thanks.

11 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 16 Feb 2015, 12:12 PM
Hello Gustavo,

Kendo UI PivotGrid and PivotDataSource in particular have API that allows to get/set columns, rows and measures values. What you can do is to use those methods to retrieve the current configuration and save it as JSON. When widget is loaded, get the saved configuration and set the dimensions of the widget using the aforementioned methods.

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
Szymon
Top achievements
Rank 1
answered on 14 Aug 2015, 09:04 AM

Hello,

I want to save a current layout using functions pivotDataSource.columns()/.rows()/.measures(). I have a problem with these functions. When I change more than one columns, rows or measures, the browser not responds. Here is an example. Is this a pivotGrids bug?

 

Regards,

Krzysztof

0
Kiril Nikolov
Telerik team
answered on 18 Aug 2015, 07:52 AM

Hello Krzysztof,

This looks like a bug with the Kendo UI PivotGrid, I have logged it in our internal bug tracker, so it will be further investigate and fix with an upcoming release.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Szymon
Top achievements
Rank 1
answered on 07 Sep 2015, 08:04 AM
Hello,

Is this bug fixed in the newest release (2015.2.905)?

Regards,
Krzysztof
0
Kiril Nikolov
Telerik team
answered on 07 Sep 2015, 08:11 AM

Hello Krzysztof,

 

I am afraid that the issue not yet resolved. I will follow up with the team and as soon as more information is available I will make sure to get back to you!

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
rwb
Top achievements
Rank 2
answered on 06 Feb 2016, 02:32 PM

How exactly?

 I have var k = $('#pivotgrid;); and var g = k.data('kendoPivotGrid');

However I can't find a description of the current rows and columns etc. anywhere inside g.

 I need to allow users to save their current view and re-load it later.

0
Kiril Nikolov
Telerik team
answered on 08 Feb 2016, 09:42 AM

Hello rwb,

 

I am not sure that I understand the issue that you are having. Would it be possible to elaborate a bit more and submit a separate support ticket so we can further assist you?

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
rwb
Top achievements
Rank 2
answered on 08 Feb 2016, 10:12 AM

Say the user has used the configurator to arrange dimensions D1 and D2 on rows, D3 on columns, and is displaying measures M1 and M2. I'd like to save this configuration so that they can restore it later.

 

The configuration of the pivotDataSource (rows, columns, measures) can be used to set an initial configuration; I want to read and set the current configuration.

0
Kiril Nikolov
Telerik team
answered on 09 Feb 2016, 08:30 AM

Hello rwb,

 

You can use the respective dataSource methods that will return the measures/rows/columns configurations that you can persists. Like for example:

http://docs.telerik.com/kendo-ui/api/javascript/data/pivotdatasource#methods-measures

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Denis Seleznev
Top achievements
Rank 1
answered on 25 Feb 2016, 10:16 AM
Hello,

This bug hasn't fixed in newest release, has it? I'm trying to save columns/rows but properties mentioned before always in the initial state, they does not changing by user actions.
0
Kiril Nikolov
Telerik team
answered on 26 Feb 2016, 08:07 AM
Hello Denis,

Can you please submit a ticket with the bug report and we will be happy to help.

Regards,
Kiril Nikolov
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
Gus
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Szymon
Top achievements
Rank 1
Kiril Nikolov
Telerik team
rwb
Top achievements
Rank 2
Denis Seleznev
Top achievements
Rank 1
Share this question
or