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

Problem with Auto Increment Field on GRID

1 Answer 311 Views
Grid
This is a migrated thread and some comments may be shown as answers.
LeandroHPA
Top achievements
Rank 2
LeandroHPA asked on 07 Apr 2012, 08:22 AM
Hi everybody!
I'm facing a problem on my grid (Kendo Web + PHP + MySQL).

Here's the sittuation:
I'm using a popup editing grid, and almost everything is going well, apart from the "delete" function. If i save a new record, and try to delete it without close the grid, is doesn't happen on my MySQL DB, only on the grid, because when i save, the ID remains as "null" (as ID is a Auto_increment field) on the grid.
Is there anything wrong on my code, or is there anything missing to refresh the ID ( I mean right after i save, it should get the ID from the db).

Please could someone help me?

Thanks in advance.


here's the code on JsFlddle
http://jsfiddle.net/63sCD/4/ 

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 11 Apr 2012, 12:07 PM
Hi,

From the description you have provided, I suspect that the implementation of the create request server code does not return the added (and updated with the generated id) items. This is required in order DataSource to locally update the id field for the added items. 

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