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

Virtual Scrolling and Cell Editing cause multiple updates

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ITS
Top achievements
Rank 1
ITS asked on 30 May 2013, 12:44 AM
When you have a data source that is more than a few pages long, here is a settings and steps to replicate the problem.

  • Select an editable cell on the intial load of the grid
  • Scroll down the grid until dynamic loading occur
  • The select another cell to edit
  • commit the edit by moving the focus away from that cell.
We found that the transport.update method is fired more than once (sometimes more than twice) in this case.

var gridData = new kendo.data.DataSource({
    transport: transport,
    serverPaging: true,
    serverSorting: true,
    serverFiltering: true,
    schema: {
    ...
    },
    pageSize: 50,
    autoSync: true,
    error: gridHelper.error
});
 
grid.kendoGrid({
    dataSource: gridData,
    sortable: true,
    navigatable: true,
    editable: true,
    scrollable: {
        virtual: true
    },
    resizable: true,
    selectable: 'row'
});

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 31 May 2013, 02:17 PM
Hello,

I am not able to reproduce such behavior on the demos. Check the following screencast - only the last modified record is send to the server all other changes are lost due to the rebind.

http://screencast.com/t/HauMpOvuQgUo


Regards,
Petur Subev
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
ITS
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or