Completed
Last Updated: 29 Apr 2024 09:40 by ADMIN
Michael D
Created on: 23 Apr 2024 05:51
Category: Grid
Type: Bug Report
0
Grid - sorting after updating the dataSource shows old data again

Consider the following scenario: There is a sortable Kendo-UI grid with a corresponding dataSource. Initially, the dataSource contains some items. When updating the dataSource to an empty array, all items disappear from the grid - so far, so good. However, if a column header is clicked afterwards to sort that column, the removed data reappears again.

We created a small "walkthrough" in this DOJO to demonstrate the issue.

FYI: The issue can be avoided by using a custom implementation of dataSource.transport.read which always returns the latest data.

1 comment
ADMIN
Peter Milchev
Posted on: 29 Apr 2024 09:40

Hello Michael,

To ensure the locally bound data source does not restore the original data, you can set the transport.data to an empty array:

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