Hi,

I facing an error when using the 'checkcolumn' inside columns :

var myGridPanel = Ext.create('Ext.grid.Panel', {
title: 'Permissions',
cm: selModel,
store: Ext.data.StoreManager.lookup('userStore'),
columns: [
{ header: 'Name', dataIndex: 'name' },
{ header: 'Read', dataIndex: 'read' },
{ header: 'Write', dataIndex: 'write' },
{
xtype: 'checkcolumn',
header: 'write',
dataIndex: 'readwrite',
width: 60,
editor: {
xtype: 'checkbox'
}
}


],
height: 200,
width: 400,
renderTo: Ext.getBody()
});

error in ext-all.js -
Microsoft JScript runtime error: Unable to get value of the property 'substring': object is null or undefined.

The store is defined as follows -

Ext.create('Ext.data.Store', {
storeId: 'userStore',
fields: [
{ name: 'name', type: 'string' },
{ name: 'Read', type: 'bool' },
{ name: 'Write', type: 'bool' },
{ name: 'readwrite', type: 'bool' }
],
data: { 'items': [
{ 'name': 'Lisa', "Read": "true", "Write": "true", "readwrite": "true" },
{ 'name': 'Bart', "Read": "true", "Write": "true", "readwrite": "true" },
{ 'name': 'Homer', "Read": "true", "Write": "true", "readwrite": "true" },
{ 'name': 'Marge', "Read": "true", "Write": "true", "readwrite": "true" }
]
},
proxy: {
type: 'memory',
reader: {
type: 'json',
root: 'items'
}
}
});


Please help.

Thanks.


P.S - using <script src="extjs-4.1.0/ext-all.js" type="text/javascript"></script> .js library.