Completed
Last Updated: 03 Apr 2024 11:36 by ADMIN
Release 2024 Q2 (May)
Matthew
Created on: 25 Mar 2024 14:13
Category: Grid
Type: Bug Report
2
Grid dataItem() doesn't work after syncing grouped DataSource

Steps:

  1. https://dojo.telerik.com/URaJeSEk
  2. Click the "Change Price" button

Expected: kendoConsole logs the dataItem info in the top message
Actual: dataItem() doesn't find the model even though it exists in the Grid dataSource

In the Grid source code in the refresh function, _data is set to dataSource.view() if partialUpdate is true. For a grouped dataSource, view() will return the parents. This breaks the dataItem function since it relies on the flat array for retrieval.

It looks like this issue was introduced in version 2024.1.319 as it doesn't seem to affect 2024.1.130.

1 comment
ADMIN
Peter Milchev
Posted on: 25 Mar 2024 14:14

Hello,

A temporary workaround is to set the ev.partialUpdate = false in the change event of the DataSource.

           items: new kendo.data.DataSource({
                    change: function(ev) {
                        ev.partialUpdate = false;
                    },

Regards,
Peter Milchev
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources