3 Answers, 1 is accepted
In general, when the cancel button is clicked on a new record the Grid should remove the record automatically.
This can be observed in our demo and in the runnable example with custom popup editor as well:
http://demos.telerik.com/aspnet-mvc/grid/editing-popup
I can assume that there is a custom code which is interfering with the editing functionality. If possible provide a fully runnable example reproducing the issue and I will gladly assist. The attached project can be used as a starting point.
Regards,
Stefan
Progress Telerik

I have the same problem. The error shows like this...
Uncaught TypeError: e is undefined
R http://localhost:5002/kendoui/js/kendo.all.min.js:27
z http://localhost:5002/kendoui/js/kendo.all.min.js:27
R http://localhost:5002/kendoui/js/kendo.all.min.js:27
i http://localhost:5002/kendoui/js/kendo.all.min.js:28
_eachItem http://localhost:5002/kendoui/js/kendo.all.min.js:28
_eachPristineItem http://localhost:5002/kendoui/js/kendo.all.min.js:28
_pristineForModel http://localhost:5002/kendoui/js/kendo.all.min.js:28
_cancelModel http://localhost:5002/kendoui/js/kendo.all.min.js:28
cancelChanges http://localhost:5002/kendoui/js/kendo.all.min.js:27
cancelRow http://localhost:5002/kendoui/js/kendo.all.min.js:52
close http://localhost:5002/kendoui/js/kendo.all.min.js:52
trigger http://localhost:5002/kendoui/js/kendo.all.min.js:25
_close http://localhost:5002/kendoui/js/kendo.all.min.js:48
_windowActionHandler http://localhost:5002/kendoui/js/kendo.all.min.js:47
jQuery 9
on http://localhost:5002/kendoui/js/kendo.all.min.js:26
init http://localhost:5002/kendoui/js/kendo.all.min.js:47
plugin/e.fn[c]/< http://localhost:5002/kendoui/js/kendo.all.min.js:26
jQuery 2
c http://localhost:5002/kendoui/js/kendo.all.min.js:26
_createPopupEditor http://localhost:5002/kendoui/js/kendo.all.min.js:52
I'm not use error event handler in DataSource.
Hello Felix,
Thank you for the error stack and details provided.
I tried to replicate the pointed faulty behavior. The result could be found in the sample project(attached) that I prepared for the case (ASP.NET MVC).
It includes a Kendo UI Grid with a "PopUp" Edit Mode. Try adding a new record, click on the "Cancel" button, and observe the result.
I hope this example provides the expected result. Feel free to use it as a template or as you decide. If further assistance is needed, try to replicate the described issue in a runnable sample project(could use the attached one for the purpose) and send it back to me in this thread. Once I have it locally will try my best to resolve this one for you.
Looking forward to hearing back from you.
Kind Regards,
Anton Mironov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.