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

Red Modified Row Indicator Showing Issue

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 29 May 2016, 01:10 PM

I have a Kendo MVC Grid that has inline editing enabled.  The form has a master SAVE button on top of the form.  The intent is to let the user modify multiple rows and then do one master save.

 

So right now the EDIT button allows the user to edit the row values and presents an UPDATE button.  This works in that the update method specified in the grid's configuration fires the controller event.  In that event I just return the row that was sent in.  That is all working but we would like the red indicator to show in the row in the modified cells after the controller action and then be cleared when the master save button is clicked, and the JavaScript submits the form's modified rows to that controller action in an AJAX batch action on the form.

 

Can someone offer a possible solution?

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Stephen
Top achievements
Rank 2
answered on 30 May 2016, 07:36 PM

For some reason, inline edit mode of the grid does not work with the batch mode of the underlying datasource.

Using the incell edit mode of the grid with batch mode will accomplish what you want(submit all rows at once instead of one at a time).

Otherwise, if you *must* use inline edit mode, then you may have to hack it:

http://stackoverflow.com/questions/24605262/batch-save-kendo-grid-in-inline-edit-mode

 

0
Accepted
Konstantin Dikov
Telerik team
answered on 31 May 2016, 11:55 AM
Hi Reid,

As Stephen mentioned, in order to enable Batch operations you need to do that for the underlying DataSource of the Grid, but it is not supported with the Inline edit mode. However, going through your requirements, the InCell (Batch) edit mode seems to be a better fit:
For the Inline edit mode you could refer to the linked by Stephen forum thread and the code-library mentioned there.


Best Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Reid
Top achievements
Rank 2
answered on 03 Jun 2016, 10:39 AM

We have since reverted this view to use inCell editing.

Thanks all!

Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Stephen
Top achievements
Rank 2
Konstantin Dikov
Telerik team
Reid
Top achievements
Rank 2
Share this question
or