Touch / Tap events in a non-mobile app

6 posts, 0 answers
  1. Aaron
    Aaron avatar
    18 posts
    Member since:
    Nov 2012

    Posted 11 Mar 2013 Link to this post

    We want to be able to easily make use of Kendo's tap/touch framework.  This is important in non-mobile situations such as Windows 8 touch screen scenarios.

    The documentation on the "Touch" framework is very light.  What I want to do is something like this:

    $("#myobject").on("kendotap", callback);

    I see how Kendo uses the data-tap attribute, or I can apply the kendoTouch like this:

    $("#list li").kendoTouch({
            surface: $("#list"),
            drag: function(e) {
                console.log("you dragged a list item");
            }
        });

    But that sees a little heavy.  Any suggestions?
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 13 Mar 2013 Link to this post

    Hello Aaron,

    The touch component follows the same initialization pattern as all Kendo UI Widgets. Based on your application requirements/development approach, you may wrap it further in jQuery helpers or custom events. 

    I would appreciate if you can share some more details regarding the documentation - what would you describe as missing or lacking explanations/examples? 

    Thank you in advance,
    Petyo
    the Telerik team
    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. David
    David avatar
    27 posts
    Member since:
    Jun 2014

    Posted 03 Nov 2015 Link to this post

    what would you describe as missing or lacking explanations/examples? 

    I will jump in here... There doesn't seem to be very many MVVM examples or information on how to implement a mobile touch widget via MVVM and not with jquery declaration... or at least I can't find it after looking for 20 minutes, which is rather frustrating. 

  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 05 Nov 2015 Link to this post

    Hello David,

     

    the mobile touch widget is instantiated with MVVM just like any other widget - by using the data-role attribute. The data attribute approach is covered in details here.

     

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. David
    David avatar
    27 posts
    Member since:
    Jun 2014

    Posted 05 Nov 2015 in reply to Petyo Link to this post

    Sure. ​The main help that is afforded for specifics pertaining to MVVM on a specific widget (in our case "TOUCH" widget) is this:

     Camel-cased options are set via dash-separated attributes. For example, the ignoreCase option of the AutoComplete is set via data-ignore-case.

    It seems like the mobile framework documentation in general is harder to find as of lately too. Is this all getting brushed under the rug in favor of Responsive approach?

  7. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 09 Nov 2015 Link to this post

    Hello David,

     

    The section I have linked to features code samples showing how to initialize a widget and bind to its events with MVVM. I consider these resources relevant to your query. Please let me know if I am missing something.

     

    The mobile framework documentation is available at the root level of our docs website. Do you refer to a specific change we have introduced? Perhaps I am missing something. 

     

    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