[CLOSED] How to handle GridPanel row tap in Mobile device?

  1. #1

    [CLOSED] How to handle GridPanel row tap in Mobile device?

    Our product wants to support mobile device. I want to know how to handle user in touch screen to tap or double tap row in GridPanel. There is ItemDblClick event for PC user. Do you have similar event for mobile user? some sample code will be help.
    Thanks
    Holly
    Last edited by Daniil; Dec 15, 2015 at 2:28 PM. Reason: [CLOSED]
  2. #2
    Hi @Holly,

    Please use:
    <ext:GridPanel ...>
        <ViewConfig>
            <Listeners>
                <Tap Handler="console.log('Tap');" />
                <DoubleTap Handler="console.log('DoubleTap');" />
            </Listeners>
        </ViewConfig>
    </ext:GridPanel>
    Last edited by Daniil; Dec 03, 2015 at 4:49 PM.
  3. #3
    Please ignore my previous post.

    Actually, tap and doubletap events should be mapped to click and dblclick events.
    http://docs.sencha.com/extjs/5.1/5.1...-TouchEventMap

    It means that you should only listen to ItemClick and ItemDblClick events and they should fire on tap and doubletap events on a touch device.

    Please clarify what exactly device do you mean under a Mobile device? Tablet devices are supported. But mobile phones are not officially supported. Although, it often just works.
  4. #4

    GridPanel row tap

    Daniil:

    I already have ItemClick, ItemDblClick in the row Listeners. Do you mean it works for tap and double tap in tablet without code change?

    Thanks

    Holly
  5. #5
    Yes, it should be working. Awhile ago I played with it and it worked well. At the moment I don't have a tablet device to check with again.

    Please clarify did you test it and it didn't works? Or, maybe, you are just asking beforehand, aren't you?
  6. #6

    GridPanel row tap

    Daniil:

    I didn't test it. Just wants to know before I change my project to support Mobile device. Thanks for let me know it works you tested before.

    Holly
  7. #7
    Okay, then one of important things is this one as well.
    Please clarify what exactly device do you mean under a Mobile device? Tablet devices are supported. But mobile phones are not officially supported. Although, it often just works.

Similar Threads

  1. [CLOSED] How to implement Double tap listener for touch device
    By iansriley in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2015, 9:20 PM
  2. Replies: 2
    Last Post: Jun 06, 2013, 6:45 AM
  3. [CLOSED] Getting a handle on the GridPanel from its Store
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 10, 2013, 4:04 PM
  4. Replies: 4
    Last Post: Apr 09, 2013, 2:10 AM
  5. [CLOSED] Unrecognized tag prefix or device filter 'ext' message
    By Fahd in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 07, 2013, 2:05 PM

Posting Permissions