devextreme-reactive icon indicating copy to clipboard operation
devextreme-reactive copied to clipboard

Batch Editing

Open cevr opened this issue 6 years ago • 4 comments

Currently, you can only save one by one from what I can see and from what I can read in the documentation.

Is there a way to save every row that is in an editing state?

Gif demonstrating issue

cevr avatar Feb 12 '19 17:02 cevr

Hi,

Do you mean batch editing? If so, currently we don't provide such a functionality out of the box. However, you can implement it on your side. Use the EditingState plugin in controlled mode to manage added and changed rows. Please refer to this example for more details. Here, I'm using a custom plugin that uses the commitChangedRows and commitAddedRows actions to fire the onCommitChanges event.

SergeyAlexeev avatar Feb 14 '19 11:02 SergeyAlexeev

Hi @SergeyAlexeev , thanks for this example, it solves my problem!

cevr avatar Feb 14 '19 18:02 cevr

@SergeyAlexeev If batch editing were to be supported, I imagine canceling would be too right?

Perhaps Support Batch Operations would fit more closely. Thoughts?

cevr avatar Feb 14 '19 21:02 cevr

@cevr We'll support canceling, of course. Our roadmap is here.

SergeyAlexeev avatar Feb 15 '19 07:02 SergeyAlexeev