This is a migrated thread and some comments may be shown as answers.

Popup Grid Cancel button Problem

3 Answers 221 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 22 Sep 2014, 05:22 AM
Hi Guys.
I am facing the problem of Popup Grid (kendo Grid) Cancel button.When I choose cancel on Popup editing, the entire row is deleted.
I saw so many threads in kendo grid forum but didn't help me.
I attached this related files.
Can somebody plz help me to fix this issue ?

Thanks
Rajesh






3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 23 Sep 2014, 12:19 PM
Hello Rajesh,

This behavior is usually observer when there isn't `id` defined for the model or if the item, which is being cancelled, has default value of the `id` field.

In your setup there is defintion for Model.Id, however it is not obvious how the grid is bound. Read method points to some dummy action method which doesn't exists in the provided files: `.Read("Dummy", "Dummy") `.

The following article explains how to properly setup the Grid and how to implement controller methods in order to have editable grid working correctly: Grid Ajax Editing.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Planet s.r.l.
Top achievements
Rank 1
answered on 23 Jun 2015, 02:56 PM

Hi,

I'm facing the same problem

cancel button cancel the row instead of simply close the editable window

http://dojo.telerik.com/ovaYO

could you please help me to find what I am missing ?

B.

0
Planet s.r.l.
Top achievements
Rank 1
answered on 23 Jun 2015, 03:04 PM

found the answer
http://www.telerik.com/forums/use-gird-editable-%27popup%27-when-click-edit-button-and-pop-up-a-dialog-and-click-%27cancel%27-the-edit-row-will-be-deleted

http://jsfiddle.net/AWyLf/37/

Thanks and sorry

 

Tags
Grid
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Planet s.r.l.
Top achievements
Rank 1
Share this question
or