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

Strange behavior with Grid edit functionality

1 Answer 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Atul
Top achievements
Rank 1
Atul asked on 27 Jul 2015, 07:01 AM

Hi Team,

 we are using Kendo grid for inline editing. it works as expected when I load the entire data from server. but when I am adding a new item using add new command I am fetching some strange behavior. Newly added item gets deleted.

 here is demo application where you can reproduce this issue.

http://plnkr.co/edit/X4ei0zPYiZ1H8AiCTy8B?p=preview

 and here are the steps to reproduce the issue:

1) Add new item with Id - 2 and update
2) Add new Item with Id - 3 and Update 

Now click on any Edit button for newly created items (Id-2). and then click the edit button (Id-3). now it would remove the item (id -2)...

I am expected here to cancel the old edit item.

can you help me what is wrong with my code or do you have any alternative solution for this problem.

 

Thanks-

Atul K.

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 29 Jul 2015, 07:02 AM

Hello Atul,

 

This behavior is caused by the fact there is no transport defined in the data source configuration. Update button will sync the data with the server, but there is no create option defined. 
 
In this case custom transport to work with local data should be defined as shown in Complete example: Local CRUD Operations with the Kendo UI Grid example. 
 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Atul
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or