1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
    bhomass is on a distinguished road

      0  

    Default Unanswered: events in the wrong order

    Unanswered: events in the wrong order


    I have a situation where the events I need are coming in the wrong order.

    I am writing a grid which mimics the Excel UI. when I edit a grid cell and click on the formulabar above, I don't want the grid cell to go out of editing mode. Therefore, I need to intercept the onBlur() method. if formulabar was the one which triggered the onBlur, I want to skip blurring the grid cell, and therefore keep it in editing mode.

    The problem is both formulabar.onFocus() and formulabar.onClick() methods on the are called after the gridcell.onBlur() method, so I can not conditionally blur my gridCell.

    is there a way I can delay the gridcell.onBlur() call til after formulabar.onFocus(), or alternatively, get the formulabar.onFocus() event earlier?

    This is prob an impossible question.

  2. #2
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
    bhomass is on a distinguished road

      0  

    Default


    I got DeferredCommand to work for this!

  3. #3
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
    bhomass is on a distinguished road

      0  

    Default


    take that back. the onblur event still jumps ahead of the grid.onclick event. Anyone knows how to delay onblur relative to grid.onclick?

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Click and Blur are dom events, fired by the browser itself. Changing your code usually isn't enough to reorder how those events fire - when a user clicks on something not in focus, first the currently focused thing must be blurred. Understanding it this way will hopefully lead to this solution - cancel the blur event, and the newly focused thing shouldn't be focused.

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..."