Transport.Destroy with function got called too much.

2 posts, 1 answers
  1. domiSchenk
    domiSchenk avatar
    55 posts
    Member since:
    Mar 2013

    Posted 16 Oct 2013 Link to this post

    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
  2. Answer
    domiSchenk
    domiSchenk avatar
    55 posts
    Member since:
    Mar 2013

    Posted 17 Oct 2013 Link to this post

    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();
Back to Top