DataGrid - save only some configuration settings

2 posts, 0 answers
  1. Jan
    Jan avatar
    3 posts
    Member since:
    May 2015

    Posted 08 Aug 2018 Link to this post


    Im using KendoUI for PHP. Im trying to to use SAVE STATE functionality by the KENDO manual: save the datagrid configuration.


    The problem is, when I will save state, to JSON string is saved also lists of items related to column ids. When I will save the datagrid configuration, there are saved also the related items. Next, when I rename some of the list item in the database, the change is not displayed, because all list items was saved and loaded from JSON save state configuration.


    Is it possible to solved this problem (for example do not save the lists items into JSON, or another solution)?

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 10 Aug 2018 Link to this post

    Hi Jan,

    You can delete the arrays that you do not want to store as shown below:
    var options = grid.getOptions();
    delete options.columns;

    Hope this helps.

    Konstantin Dikov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top