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

Not able to update and delete record (WebSQL)

2 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 25 Feb 2014, 02:21 PM
Hello, I have a problem with the grid.
When I insert new record, it is not shown in the grid. There is just new empty row and I have to do refresh to see it.
Another think is I can't edit or delete record. After refresh I will get the original records back.
What I am doing wrong?

I am running it in Chrome 33.

Thank you for your help.

Here is the example http://jsbin.com/dorosuwu/1

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 Feb 2014, 02:39 PM
Hi Martin,

We couldn't find the reason why your demo isn't working. Here is another one which seems to work as expected: http://jsbin.com/azukin/212/edit

Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Martin
Top achievements
Rank 1
answered on 25 Feb 2014, 06:32 PM
Ok, I found the problems.
The empty row after insert is because I didn't put the extend function to the create function.
callback([{ id: result.insertId }]);
callback([$.extend(model, { id: result.insertId })]);
So it should by there!

And the update and delete problem was because casesensitive ('Id', 'id') column.
It is important to keep everything same.

:)
Tags
Grid
Asked by
Martin
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Martin
Top achievements
Rank 1
Share this question
or