Steps:
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.
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