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

Update item Id after create

2 Answers 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 1
Kenneth asked on 06 Mar 2013, 05:24 AM
I have a grid with enabled  autoSync: true in the data source. I need to update the item Id after create otherwise I can't delete the item without refreshing the grid. Is there any solution for this ?

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 07 Mar 2013, 01:32 PM
Hi Kenneth,

 
From the provided information it's not clear for us what is the exact reason for this behavior as the autoSync option of the dataSource will automatically save the record after it's creation and retrieve the ID from the server (the grid expects the server to return the created record with ID). Could you please provide runable example where the issue is reproduced?

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kenneth
Top achievements
Rank 1
answered on 11 Mar 2013, 05:52 AM
Seems like i need to return the created item from the serer.Thanks for the support.
Tags
Grid
Asked by
Kenneth
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Kenneth
Top achievements
Rank 1
Share this question
or