Sava current Layout Configuration

12 posts, 1 answers
  1. Gus
    Gus avatar
    29 posts
    Member since:
    Jan 2015

    Posted 12 Feb 2015 Link to this post

    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.
  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 16 Feb 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Krzysztof
    Krzysztof avatar
    3 posts
    Member since:
    Dec 2013

    Posted 14 Aug 2015 Link to this post

    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

  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 18 Aug 2015 Link to this post

    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!
     
  6. Krzysztof
    Krzysztof avatar
    3 posts
    Member since:
    Dec 2013

    Posted 07 Sep 2015 Link to this post

    Hello,

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

    Regards,
    Krzysztof
  7. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 07 Sep 2015 Link to this post

    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!
     
  8. rwb
    rwb avatar
    19 posts
    Member since:
    Aug 2015

    Posted 06 Feb in reply to Georgi Krustev Link to this post

    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.

  9. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 08 Feb Link to this post

    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!
     
  10. rwb
    rwb avatar
    19 posts
    Member since:
    Aug 2015

    Posted 08 Feb in reply to Kiril Nikolov Link to this post

    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.

  11. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 09 Feb Link to this post

    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!
     
  12. Denis Seleznev
    Denis Seleznev avatar
    9 posts
    Member since:
    Sep 2008

    Posted 25 Feb Link to this post

    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.
  13. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 26 Feb Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready