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

Swiping from a listview

1 Answer 195 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aksh
Top achievements
Rank 1
Aksh asked on 04 Jan 2013, 04:02 AM
Are there any examples of how to make swipe events work from a listview?

Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 07 Jan 2013, 02:23 PM
Hello,

Basically you should initialize a touch widget from the <li> element or from a element in the template.
<script id="tmp" type="text/x-kendo-template">
    <div data-role="touch" data-enable-swipe="true" data-swipe="onSwipe">
        #: ProductName #  <i>#: kendo.toString(UnitPrice, "c") #</i>
    </div>
</script>
 
function onSwipe(e) { /* handle swipe */ }

In case you have any problems with the implementation please send me a small but runnable example that demonstrates the issues and I will do my best to help.

Thank you in advance for the cooperation.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Aksh
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or