I'm working on a new project using version v2022.3.1109. There seems to have been a change of behavior since the last version I used. When a call to a grids datasource read method fails, the grid isn't cleared of data, as used to be the case.
This can give a user the impression the call has worked. I can trap data source errors, but there doesn't seem to be a method to clear the current data from the grid.
What's the easiest way to clear the datasource if a read call fails?
The read call looks like:
$("#Grid").data("kendoGrid").dataSource.read();
Thanks
Hi,
One way to set clear the dataSource is to pass an empty array to the data method: