In order to ensure that the DataSource is properly tracking which items have been removed, the response should be either empty, or contain the removed items.
There are two possible approaches to achieve the desired behavior:
1) Modify the remote service to return a complex object with a "data" field, "total" field, and a custom field for the deleted/deactivated string, and use the dataSource.schema
option to specify the data and total fields. Then you will be able to access the custom field of the response in the requestEnd
2) Use custom transport
to gain full control of the data flow, and perform the necessary custom logic in the provided function before calling options.success(options.data)
Further information about configuring a custom transport is available in the following section of our documentation:
I hope this helps.
Telerik by Progress
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2
. Try it out today
! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.