Using touch without view / mobile Application Object?

5 posts, 0 answers
  1. Can
    Can avatar
    5 posts
    Member since:
    Nov 2012

    Posted 25 Mar 2015 Link to this post

    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

  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 26 Mar 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Can
    Can avatar
    5 posts
    Member since:
    Nov 2012

    Posted 26 Mar 2015 in reply to Petyo Link to this post

    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
  5. Can
    Can avatar
    5 posts
    Member since:
    Nov 2012

    Posted 26 Mar 2015 in reply to Petyo Link to this post

    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
  6. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 30 Mar 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready