Save the grid column layout with dataMap

Posted by: productinfo on 24 May 2018, 3:55 am EST

    • Post Options:
    • Link

    Posted 24 May 2018, 3:55 am EST

    When we want to save with DataMap we get ‘Converting circular structure to JSON’ error.

    What is the solution?

  • Posted 24 May 2018, 5:12 am EST

    We absolutely must use it in our project. So please find a solution.

  • Posted 25 May 2018, 8:08 am EST

    Hi,

    As dataMap is not serializable, they are not included in columnLayout string thus you need to save them explicitly.

    For accomplishing this, simply save the source data for maps along with its display and value properties.

    Then to recover create new DataMap with the saved info and assign them to the required column.

    Refer to the following sample which implements the same:-

    https://stackblitz.com/edit/angular-ufmjec?file=app%2Fapp.component.ts

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels