11 Answers, 1 is accepted
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
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
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
Is this bug fixed in the newest release (2015.2.905)?
Regards,
Krzysztof
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
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.
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
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.
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
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.
Can you please submit a ticket with the bug report and we will be happy to help.
Regards,
Kiril Nikolov
Telerik