grid 访问数据项 事件

function cellclickFn(grid,rowIndex,columnIndex,e){
     var record = grid.getStore().getAt(rowIndex); //Get the Record
     var fieldName = grid.getColumnModel().getDataIndex(columnIndex); //Get field name
     var data = record.get(fieldName);
     if(fieldName=='address')
     {Ext.MessageBox.alert('show',' 数据 '+data);}

    };
    gridPanel.addListener('celldblclick', cellclickFn);

你可能感兴趣的:(function,record,Field,Address,休闲)