Declined
Last Updated: 02 Feb 2023 11:45 by ADMIN
hkdave95
Created on: 26 Jan 2023 12:03
Category: UI for ASP.NET Core
Type: Feature Request
0
Grid options merge feature - between developed grid and storing options and developing the grid and retrieving stored options

Dear Telerik

The feature is related to https://www.telerik.com/account/support-center/view-ticket/1594775 this thread.

It is related to a product environment.

Scenario:

  1. Save grid options in persistent storage (i.e. DB).
  2. Grid operates successfully and return visits operate well with stored options being loaded with the grid.
  3. Then the grid column structure or some other feature is amended during a maintenance and development request - the feature setting is contained within the stored options which are loaded with the grid. The grid functions without some of the changes because the options override the changes.
  4. Behavior is unwanted so we would have to merge the new options and the old options.

Request:

Please can Telerik create functionality along the lines of:

$("#SomeGrid").data("kendoGrid").setOptions($("#SomeGrid").data("kendoGrid").mergeOptions(OptionsSaved, OptionsNew));

KR

David

1 comment
ADMIN
Stoyan
Posted on: 02 Feb 2023 11:45

Hi David,

Thank you for providing these additional details about the requirement.

With the knowledge about the scenario at hand an after consulting with our developer team I am able determine our stance in regard to the Feature Request.

The required behavior can be achieved currently with the help of the JavaScript Object.assign method or with jQuery.extend. These allow you to merge the saved options with any updates that have occurred later. 

var mergedOptions = Object.assign(OptionsSaved, OptionsNew);
Then you can set the mergedOptions to the Grid.
$("#SomeGrid").data("kendoGrid").setOptions(mergedOptions);

Since this means that the required behavior can be achieved I will set the status of the request to declined.

Please don't hesitate to let us know if any additional questions on the topic arise.

Regards,
Stoyan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.