PDA

View Full Version : checkcolumn not editable and Issue extjs 4.2.1



icebergdelphi
23 Mar 2014, 6:19 AM
Hi, I have a problem with checkcolumn column every time I click it appears this problem: Uncaught TypeError: Can not call method 'indexOf' of undefined ext-all.js: 21 and anything happens with the column, i need to change the column status: true or false.


My MySQL database I have defined this field: status_seguimiento as tinyint


the code for the grid:


xtype: 'gridpanel',
itemId: 'grdLstUnidadesSeguimiento',
store: 'storeSeguimiento',
columns: [
{
xtype: 'gridcolumn',
hidden: true,
enableColumnHide: false,
dataIndex: 'idUnidad',
hideable: false,
text: 'idUnidad'
},
{
xtype: 'gridcolumn',
width: 333,
layout: 'fit',
dataIndex: 'nombre',
text: 'Listado de Unidades',
flex: 4
},
{
xtype: 'checkcolumn',
dataIndex: 'status_seguimiento',
text: 'MyCheckColumn3',
flex: 1
}



is this a checkcolum bug?:-?
im using sencha architech 3

Zinnia
25 Mar 2014, 12:38 AM
Check the below example

http://docs.sencha.com/extjs/4.2.1/#!/example/build/KitchenSink/ext-theme-neptune/#cell-editing

icebergdelphi
25 Mar 2014, 5:04 AM
Woou Thanks , maybe in this new ver., something changed. Thanks i really appreciate it. But however my code works very well with localStorage Proxy, my only problem is with a json proxy.

icebergdelphi
12 May 2014, 10:56 AM
Check the below example

http://docs.sencha.com/extjs/4.2.1/#!/example/build/KitchenSink/ext-theme-neptune/#cell-editing

Thanks sorry for not reply before, but the issue was ( or my error), that i was missing the update line in the api section:


api: {
read: 'controller/read',
update: 'controller/changeStatu' //I was missing this line
},


So when we are with brain busy, we forget the basic things ;)