pludikhu
3 Sep 2010, 10:43 PM
Hi all
I was trying to get a CycleButton in an editable grid cell, but it doesn't seem to work.
var cm = new Ext.grid.ColumnModel({
columns: [{
header: 'Light',
dataIndex: 'light',
width: 130,
editor: new Ext.CycleButton({
showText : true,
items : [
{ text : 'one', checked : true },
{ text : 'two' },
{ text : 'three' }
]
})
}]
...
I always get this.field.reset is not a function.
I suppose it's just meant to be used in menus. I read somewhere that it may be because it's not a field and something about inheritance but that's where Animal lost me :-(
Would there be an other way to have a three state 'checkbox' or something in a grid cell?
Don't make it too advanced please, I'm still no JS expert.
Thanks for any help I can get!
Patrick
I was trying to get a CycleButton in an editable grid cell, but it doesn't seem to work.
var cm = new Ext.grid.ColumnModel({
columns: [{
header: 'Light',
dataIndex: 'light',
width: 130,
editor: new Ext.CycleButton({
showText : true,
items : [
{ text : 'one', checked : true },
{ text : 'two' },
{ text : 'three' }
]
})
}]
...
I always get this.field.reset is not a function.
I suppose it's just meant to be used in menus. I read somewhere that it may be because it's not a field and something about inheritance but that's where Animal lost me :-(
Would there be an other way to have a three state 'checkbox' or something in a grid cell?
Don't make it too advanced please, I'm still no JS expert.
Thanks for any help I can get!
Patrick