Declined
Last Updated: 29 Oct 2021 14:55 by ADMIN
Pier-Luc
Created on: 01 Sep 2015 12:34
Category: Kendo UI for jQuery
Type: Feature Request
1
Stop a data bound control from accepting changes when there are server side errors
On data management controls (like the grid and the listview), if they are bound to an ajax remote data source and an error occures, it will silently ignore it and accept the changes. You listen to the error event on the data source to display the messages, but that wont stop it from accepting the changes. You can add a single occurrence listener on the grid's data binding event to prevent it, but you are starting to get into weird hacks. Then theres the listview, which is an even uglier hack.

Not only should this be standard behavior in the first place, but it's a pain to even get it to work with hacks.

Please change the behavior or at least add an option to prevent accepting bad data that didn't even get saved in the database.
1 comment
ADMIN
Angel Petrov
Posted on: 29 Oct 2021 14:55

Hi,

Generally the component will not accept the changes, but will keep pending and visually displayed as when modifying a grid item it is changed locally. This change will not be lost until someone calls cancelChanges. That said if this method is called inside the error handler the grid should be reset to the last valid state.

If the experienced behavior is different I would recommend opening a formal support ticket and attaching a project which we can debug there.

Regards,
Angel Petrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.