1. #1
    Sencha User
    Join Date
    Sep 2010
    Location
    Valencia, Spain
    Posts
    66
    Vote Rating
    0
    anpegar is on a distinguished road

      0  

    Default Hide editor in EditorGridPanel

    Hide editor in EditorGridPanel


    Hi, I want that no appear the editor when the value of a cell is "X", par example.
    I try this:
    In a render function of a cell I make the following:

    function myRenderCell(val,metaData,rec){
    if (rec.get('DPP_MAESTRO_DET') == "X"){

    return '';

    }
    }
    function escNoEdit(c){
    if (vTipoGrid == "D"){
    var vGrid = Ext.getCmp('GridDPP');
    vGrid.stopEditing(true);
    }
    }


    The first click over the cell don't works, the combobox appear, but in the second click the combobox not appear. Why?

    First click:
    Img2.jpg


    Second click:
    Img3.jpg


    Code example:
    Code:
    var DPP_BASE = new Ext.ux.Column({
            id: 'DPP_BASE',        
            header: 'Base %',
                dataIndex: 'DPP_BASE',
                sortable: false,
                menuDisabled: true,
                width: 20,
                align: 'right',
                editor: {xtype:'combo',store:st_lvBase, displayField:'valBas',valueField: 'codBas',mode: 'local',typeAhead: false,triggerAction: 'all',lazyRender: true, listeners:{beforeshow : function(c){escNoEdit(c);}}},
                renderer: myRenderCell
        });
    [SOLVED]
    Last edited by anpegar; 20 Oct 2011 at 7:53 AM. Reason: Solved

  2. #2
    Sencha User
    Join Date
    Sep 2010
    Location
    Valencia, Spain
    Posts
    66
    Vote Rating
    0
    anpegar is on a distinguished road

      0  

    Default


    Any idea, please?

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Location
    Valencia, Spain
    Posts
    66
    Vote Rating
    0
    anpegar is on a distinguished road

      0  

    Default


    Beautiful minds, can help me !!
    Thanks.

  4. #4
    Sencha User
    Join Date
    Sep 2010
    Location
    Valencia, Spain
    Posts
    66
    Vote Rating
    0
    anpegar is on a distinguished road

      0  

    Default [solved]

    [solved]


    I use the method isCellEditable of columnModel.

    http://docs.sencha.com/ext-js/3-4/#!...isCellEditable

    Code:
    var cmDPP = new Ext.ux.ColumnModel({
            id: 'cmDPP',        
            isCellEditable: escNoEditable,
            columns: [c1,c2,c3,...,cN]
    });  
    
    function escNoEditable(col, row){
      var st = Ext.getCmp('GridDPP').getStore();
      var record = st.getAt(row);
      if (record.data.DPP_MAESTRO_DET == "D"){    
        return false;
      }
      return true;
    }

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