PDA

View Full Version : Ext.selection.CheckboxModel



ruidanielribeiro
21 Oct 2012, 2:44 AM
Hello,

I'm using this model in a grid of my project and on the Google Chrome version 22 isn't appearing the checkboxs. Have you any solution for this?

Thank you

vietits
21 Oct 2012, 5:37 PM
Check to see whether or not you see the problem with the following code. It works fine for me with Ext 4.1.1 and Chrome 22.


Ext.onReady(function(){
var store = Ext.create('Ext.data.Store', {
fields: ['company'],
data: [
{company: '3m Co'},
{company: 'Alcoa Inc'},
{company: 'Altria Group Inc'}
]
});


var grid = Ext.create('Ext.grid.Panel', {
renderTo: Ext.getBody(),
store: store,
width: 400,
height: 150,
selModel: Ext.create('Ext.selection.CheckboxModel'),
columns: {
items: [{
text : 'Company',
flex : 1,
dataIndex: 'company'
}]
}
});
});