1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    33
    Vote Rating
    0
    xunxin is on a distinguished road

      0  

    Default how to avoid itemclick event when fire a itemdbclick event

    how to avoid itemclick event when fire a itemdbclick event


    i create a grid panel and load some data in it.

    i want to edit it in a opened window when it is double clicked, but the click event is also fired twice.

    anyone can help me? thanks in advance.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,918
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Do you have a listener for both events?

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Aug 2008
    Posts
    33
    Vote Rating
    0
    xunxin is on a distinguished road

      0  

    Default


    yes.

    it will show the details of the clicked record when fire a click event.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,918
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Create a listener on 'select' instead of itemclick. This will fire only when you have changed rows, but still give you the behavior you need?

    Regards,
    Scott.

  5. #5
    Sencha User
    Join Date
    Aug 2008
    Posts
    33
    Vote Rating
    0
    xunxin is on a distinguished road

      0  

    Default


    thanks for your quick reply.

    unfortunately, there are a paging toolbar docked in the grid, a deselect event will be fired by the beforeLoadMask method when go or back between pages, and then a strange loop come here:

    1. i have to a variable(e.g. a Array named selRecords) keep all of the selected records when the page changed.
    2. and push or remove from the selRecords when select or deselect a record.
    3. if the select and the deselect listener are created, the selRecords will lose the records which removed by beforeLoadMask method, but it is unexpected.

    regards.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi