Completed
Last Updated: 09 Nov 2015 13:29 by ADMIN
Stephan
Created on: 20 Oct 2015 10:12
Category: Data Source
Type: Feature Request
1
Add "success" event to or change "change" event of datasource
In order to clearly identify if a datasource operation is successful, 
two alternatives are possible:

1. Add success event to the datasource in order to get datasource operations separated from update, destroy, add. 

2. Enhance change event by error array. 
Currently, the change even is fired even in case of an error. So, at least an error array containing error messages should be available, together with a property "hasErrors".
3 comments
ADMIN
Telerik Admin
Posted on: 09 Nov 2015 13:29
Thanks for the additional explanation. Will forward it to our devteam for further consideration.
Stephan
Posted on: 08 Nov 2015 13:20
Hello,
the issue is that the error event will be fired if there is an error. Ok, but if I want to use the change event as well, how can I know inside th change event that there is maybe an error event raised on top? So it is more or less a question of sequence which event will be luckily raised and then with global variable to keep the error event status and to check this variable inside change/success event... not good. Much better is to know inside the change event that everything is ok or not. 
ADMIN
Telerik Admin
Posted on: 20 Oct 2015 15:37
Thanks for the proposal, Stephan.

Note that there's already error event (http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#events-error) exposed for the Kendo UI DataSource object, which is probably what you are looking for in this case.

Let me know if not, or I am leaving something out.