Declined
Last Updated: 05 Dec 2019 07:58 by ADMIN
Peter
Created on: 28 Nov 2019 08:11
Category: Grid
Type: Feature Request
1
combination of batch and pop-up editing should not update database directly

When Batch update mode is set to true, Popup editing mode should write back the data to grid and not call the update actions directly upon confirming the popup editing window.

I have a page containing a grid, in the toolbar there are following buttons:

* Add

* Edit

* Delete 

When the user clicks Edit, the selected row is edited using the pop-up window. Alternatively the user can also double click the row to start editing. 

On the bottom of the page there is a Save and Cancel Changes button. The save changes must update all applied changes, the cancel button must undo them.

At current when Popup editing is used and the user confirms the popup window, changes are immediately written to the database. This breaks functionality of the Cancel button. Cancel will now only apply to deletes.

I need popup functionality because I have too many columns to use in-cell editing.

Telerik is ignoring the setting batch(true) when doing popup editing, so this could even be considered a bug instead of a feature request!

 

 

1 comment
ADMIN
Alex Hajigeorgieva
Posted on: 05 Dec 2019 07:58

Hi, Peter,

Following the Separation of Concerns design principle, the Kendo UI Data Source and the Kendo UI Grid for ASP.NET Core are different components and as such the data source is not aware to which widgets it is bound to. When set to Batch(), the Kendo UI DataSource is responsible for combining all of its updated, created and destroyed items in collections which should be posted when they are synced.

On the other hand, the Kendo UI Grid offers three types of editing - Popup, InLine and InCell and out of the three, only the incell edit mode sync the data source when the user presses the save changes button. The InLine and PopUp edit modes syncs the data source changes when the row is closed for editing.

To achieve the desired behaviour, a custom implementation would be required. You can check the following forum post for more details:

https://www.telerik.com/forums/batch-and-popup-editing#0VDRIrSAP0S-V3iDubpqLA 

Kind Regards,
Alex Hajigeorgieva
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.