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

Transport.Destroy with function got called too much.

1 Answer 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
domiSchenk
Top achievements
Rank 1
domiSchenk asked on 16 Oct 2013, 10:07 AM
i've got a strange problem using transport.destroy:

First i have a Listview with a swipe event to open the delete option.
i did implement this: http://demos.kendoui.com/mobile/listview/editing.html#/ in my app.
everything work fine, except destroy will be called for X+1 (x = deleted items)

At first deletion it will be called once, at the 2nd time it will be called twice and so on.

Here is the JSBin: http://jsbin.com/AGAGUfE/11/

Did i implement something false?
or is it a bug in Kendo UI mobile? (i think kendo Ui is the same)


Thanks for your help

1 Answer, 1 is accepted

Sort by
0
Accepted
domiSchenk
Top achievements
Rank 1
answered on 17 Oct 2013, 05:36 AM
found the problem:

i have to tell the DataSource that it has succeeded.
this is done following:
options.success();


here the full jsbin:
http://jsbin.com/AGAGUfE/14/edit
a
    options.success();

    options.success();
Tags
General Discussions
Asked by
domiSchenk
Top achievements
Rank 1
Answers by
domiSchenk
Top achievements
Rank 1
Share this question
or