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

Kendo Grid - losing batch edits when sorting or paging

9 Answers 649 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 Jan 2013, 12:08 AM
Hi

I have a kendo grid implemented in html using batch editing.  Everything works fine except changes are lost when the user changes the sort order or goes to another page (ie. grid pagination).    I tried implementing client side pagination, however changes are still lost.

Is there any way to persist changes (if using client side pagination and sorting) or at least alert the user that they have unsaved changes and give them the option to save?


Thanks

9 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 08 Jan 2013, 09:27 AM
Hello Michael,

Client paging/sorting with batch editing should persist changes. At least it does on the demo site:
http://demos.kendoui.com/web/grid/editing.html

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 08 Jan 2013, 06:55 PM
Thank you for your help.  I have it working now.

On my dataSource, I had serverPaging set to false, however serverSorting set to true (which I noticed seemed to cause paging to happen on the server as well)  Setting both to false works.


The only issue is that the red maker indicating that the data has changed is lost - but that is minor

Thanks


Michael
0
Nikolay Rusev
Telerik team
answered on 09 Jan 2013, 04:10 PM
Hello Michael,

Indeed the "dirty flag" will be lost on grid refresh. This behavior is by design.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 10 Jan 2013, 05:45 PM
I mean that the "dirty" indicator on a cell is lost when pagination or sorting changes (even though I haven't saved the pending changes yet).  However the changes are still being maintained. And if I save changes they are committed
0
Nikolay Rusev
Telerik team
answered on 11 Jan 2013, 04:33 PM
Hello Michael,

Indeed, the dirty flag from cells is not persisted on grid refresh, however the data is still internally marked as changed and will be posted to server on DataSource.sync.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Nick
Top achievements
Rank 1
answered on 22 Sep 2015, 12:58 AM

Hello,

Is there a workaround for maintaining the dirty cell marker when a cell has changed data and the grid is filtered?

I understand this is by design, but it is not desirable, as it is difficult to track the changes.

Thanks

0
Nick
Top achievements
Rank 1
answered on 22 Sep 2015, 04:01 AM
Scratch that.  Found some other posts on the topic.  Thanks.
0
Marian
Top achievements
Rank 1
answered on 24 Sep 2015, 08:41 AM
Hi Alex, did you find a way to persist dirty cell marker? Could you share the link?
0
Nikolay Rusev
Telerik team
answered on 28 Sep 2015, 06:25 AM

Hello Marian,

 

There is a code-library for this - Preserve the dirty indicator in incell editing and client operations

 

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Michael
Top achievements
Rank 1
Nick
Top achievements
Rank 1
Marian
Top achievements
Rank 1
Share this question
or