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

Using touch without view / mobile Application Object?

4 Answers 47 Views
Touch
This is a migrated thread and some comments may be shown as answers.
Can
Top achievements
Rank 1
Can asked on 25 Mar 2015, 12:37 PM
Hi,

I want to use the touch events on a Homepage (CMS Joomla) with some divs but I haven't found any information about to use them without a view. May you be able to give me a code sample how to use it without a view and (without?) Mobile Application Object?

( http://docs.telerik.com/kendo-ui/mobile/touch )

Best,
Can

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 26 Mar 2015, 07:27 AM
Hello,

you don't need views or mobile apps to use the widget. This code example should work - remove the view element.
Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Can
Top achievements
Rank 1
answered on 26 Mar 2015, 09:11 AM
Thank you, but this leads to my question: I have call the "initTouch" function and that is missing removing the view (no data-init). I have read that it is not recommended to use the jQuery( document ).ready function to call functions there. So how I should call the function?

Best
0
Can
Top achievements
Rank 1
answered on 26 Mar 2015, 09:13 AM
Thank you, but removing the view leads to not calling "initTouch" as there is no data-init any more. How should I call it? I have read there are some problems using jQuery .ready.

Best
0
Petyo
Telerik team
answered on 30 Mar 2015, 07:55 AM
Hello,

I am not sure about the problems you refer to - most likely, they are the ones specific to the mobile app instance, which you don't use anyway. You may call the initTouch implementation at any point (including the document ready event). 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Touch
Asked by
Can
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Can
Top achievements
Rank 1
Share this question
or