Binding swipe events on data bound mobile listview

2 posts, 0 answers
  1. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 21 Jul 2012 Link to this post

    I have a mobile listview bound to a model array.
    I would like to bind the swipe events on the list view items to display a delete button (the iOS way).
    I have implemented the swipe events as explained at http://demos.kendoui.com/mobile/swipe/index.html.
    Unfortunately I cannot specify the function that binds the events in the data-init attribute of the view because my listview is dynamic.
    1) Which event shall I use (change event on the model? how can I be sure that it is called after the listview is updated?)
    2) How to unbind the handlers before binding them again?

    Optionally:
    3) Is there any way to make the items in the list view draggable to be reordered?
  2. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 21 Jul 2012 Link to this post

    I have been able to achieve (not optimally) the desired functionality with the dataBound event on the listview but if the dataSource has n rows and row n+1 is added to the underlying model, the event is triggered n+1 times when the listview reloads the datasource. So this makes it all the more necessary to unbind swipe events if this is the the route to take.
  3. Kendo UI is VS 2017 Ready
Back to Top