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

Batch Editing: Destroy Does Not Page Correctly

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Danny Fritz
Top achievements
Rank 1
Danny Fritz asked on 23 Oct 2014, 04:59 PM
When Batch Editing is enabled on the Grid and you destroy a record, a record from the next page doesn't fill in the empty spot on the bottom of the grid. Instead, the number of rows in the Grid decreases.

Here is an example http://dojo.telerik.com/UQunU
Ideally, when a record is destroyed, the height of the Grid shouldn't change. It should borrow a record from the next page to place there.

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 27 Oct 2014, 11:54 AM
Hello Danny,

This behavior is expected when using serverPaging and batch operations, because in order to show the next item the Grid needs to make a read request. Doing that without saving the changes first would lead to losing the changes that were made. In case you wish to always display as much items as specified in the pageSize, I would suggest using client-side paging.

Regards,
Alexander Popov
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
Danny Fritz
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or