This is a migrated thread and some comments may be shown as answers.
DataGrid - save only some configuration settings
1 Answer 4 Views
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 08 Aug 2018, 07:04 AM

Hi,

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

https://demos.telerik.com/kendo-ui/grid/persist-state

...to 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)?

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 10 Aug 2018, 05:55 AM
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.


Regards,
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.
Tags
Grid
Asked by
Jan
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or