This is a migrated thread and some comments may be shown as answers.
Inline + batch grid editing is completely broken
4 Answers 44 Views
This is a migrated thread and some comments may be shown as answers.
Dustin
Top achievements
Rank 1
Dustin asked on 23 Apr 2015, 11:19 PM

Inline editing does not function at all within the constraints of batch editing and is creating significant problems for our development team.

 

To see this in effect: Add a new record to a grid with inline editing and batch editing set. Hit the update button for that record.

When hitting the Update button with inline editing setup, the saveRow method calls the dataSource sync method without regard to the batch setting. Note the console.log statements indicating the 

At the very least, this needs to be called out within the API documentation.

 

This behavior can be seen with the following (same example on both links, duped for backup):

http://dojo.telerik.com/@djones/EfOXi

https://jsfiddle.net/8szucmty/

 

4 Answers, 1 is accepted

Sort by
0
Dustin
Top achievements
Rank 1
answered on 24 Apr 2015, 01:18 PM

Additionally, if you try to bypass the default behavior to save data in a batch later the Cancel behavior is broken.

 

To see this in effect: Add a new record to a grid with inline editing and batch editing set. Hit the update button for that record. Now hit the Edit button for that record and then the Cancel button. The record will be removed instead of cancelling out of the edit and resetting changes to that record.

0
Boyan Dimitrov
Telerik team
answered on 27 Apr 2015, 02:59 PM

Hello Dustin,

 

I would like to clarify that batch editing in inline and popup edit mode will affect only how the data will be send to the server. For cases when user wants to update more than one record with a single request only the "incell" edit mode should be used. The reason for this behavior is that the "update" button of "inline" and "popup" edit mode will sync the changes of the DataSource with the server. The opposite happens when "incell" edit mode . User can go in edit mode, edit the value and go in different cell for editing without syncing the previous change with the server before the next edit. When user is done editing the grid "Save Changes" will sync the DataSource with the server with a single request (for all updated records). "Inline" and "popup" edit modes are designed for single item update.  

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Paolo
Top achievements
Rank 1
answered on 24 Apr 2018, 12:33 PM

Hi Boyan

please could you open an issue to update the docs ?

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/editable.mode 

We lost many time finding this information and it could save up time for successors 

 

Thanks

 

 

 

0
Boyan Dimitrov
Telerik team
answered on 26 Apr 2018, 11:11 AM
Hello,

I believe that I was not very accurate in my statement in my last response in this thread. This is why I edited my answer to give more details about the batch editing with different inline modes. It is practically possible to use batch editing with "inline" and "popup", but there are some differences with the batch editing functionality used together with "incell" edit mode. So basically if we add restriction for the usage of batch editing with "inline" and "popup" edit modes will not be correct, because practically they can be set together. 

Regards,
Boyan Dimitrov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Dustin
Top achievements
Rank 1
Answers by
Dustin
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Paolo
Top achievements
Rank 1
Share this question
or