Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    372
    Vote Rating
    4
    ttbgwt is on a distinguished road

      0  

    Default Unanswered: How to get cell index (or dataIndex) of the cell that triggered itemcontextmenu ?

    Unanswered: How to get cell index (or dataIndex) of the cell that triggered itemcontextmenu ?


    How can I get the cell index (or dataIndex) of the cell that triggered this itemcontextmenu of a grid view?

    Code:
      listeners: {
        itemcontextmenu: function (view, record, el, index, e, eOpts) {
            e.preventDefault();
            //how can I get the cell index (or dataIndex) of the cell that triggered this itemcontextmenu?
        }
       }

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Answers
    656
    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


    Have a look at:

    Code:
    var pos  = grid.getSelectionModel().getCurrentPosition();
    console.log(pos);
    Scott.

  3. #3
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    372
    Vote Rating
    4
    ttbgwt is on a distinguished road

      0  

    Default


    I landed up listening to the cellcontextmenu event on the grid's view...

    Code:
                viewConfig: {
                    listeners: {
                        cellcontextmenu: function (view, cell, cellIndex, record, row, rowIndex, e) {
    
    
                            e.preventDefault();
    
    
                            var column = view.getHeaderByCell(cell);
                            var position = view.getPositionByEvent(e);
                            var columnIndex = position.column;
                            var dataIndex = column.dataIndex;

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