This is a migrated thread and some comments may be shown as answers.

Batch Editing and not save per row edits

3 Answers 778 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 01 Mar 2016, 08:30 PM

I am creating an inline editable grid where I can add row after row or edit a row or delete a row and during that whole process, I don't want to save any changes to the DB. I am using batch:true in the dataSource. I also have the add/edit/delete/done/saveAll buttons outside the grid (not using the toolbars).

Currently, I am calling addNew() from the add button and a new row appears with the editable controls (dropdown, etc) - all good so far

When I click on the done button, I want the current row to stop editing and turn into static text in the grid, but not trigger the create/update/etc options in the dataSource.

When I click on the save button, that is when the changes should be sent to the DB via the dataSource settings.

How can I achieve this?

Thanks,

--Ed

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 03 Mar 2016, 12:38 PM
Hello Ed,

In order to achieve the desired behavior the best way would be to use the "batch" edit mode of the Grid which is designed for editing several records and sync all changes at once only after pressing the "Save Changes" button. Please check the example below:

Regards,
Vladimir Iliev
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, 02:58 PM

Hi Vladimir, I have a question, the batch operation mode is only usable with editing mode == 'incell' ? This has many implication for example :

Batch Mode required ==> incell editing required ==> implication : cannot use cascade dropdowns

So I think a nice feature to implement would be support batch mode in inline editing 

Thanks

0
Viktor Tachev
Telerik team
answered on 26 Apr 2018, 08:04 AM
Hello Paolo,

Please submit each new query in a separate thread. This way the information in each thread will be consistent and easier to use as reference. Also, this way we can keep better track of the support history and provide answers faster. 

With that said, check out the following example that illustrates how you can have cascading dropdown editors in a Grid with in-cell edit mode enabled.



Regards,
Viktor Tachev
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
Ed
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Paolo
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or