2010-07-23 30 views

Respuesta

9

Eche un vistazo a la muestra here. Se utiliza un plugin llamado CheckBoxColumn (tendrá que ver la fuente y encontrar el archivo JS.

Algunos ejemplo de uso del archivo del plugin ...


var checkColumn = new Ext.grid.CheckColumn({ 
    header: 'Indoor?', 
    dataIndex: 'indoor', 
    id: 'check', 
    width: 55 
}); 

// add the column to the column model 
var cm = new Ext.grid.ColumnModel([{ 
     header: 'Foo', 
     ... 
    }, 
    checkColumn 
]); 

// create the grid 
var grid = new Ext.grid.EditorGridPanel({ 
    ... 
    cm: cm, 
    plugins: [checkColumn], // include plugin 
    ... 
}); 

 
Cuestiones relacionadas