PDA

View Full Version : EditorGrid with RadioGroup



tobiu
8 Nov 2010, 9:26 AM
hi community,

just out of curiosity: has anyone tried an EditorGrid with a RadioGroup as a column editor? it might make sense instead of a combo if you have just 2 or 3 options.

i tried it out like this:



{
header: 'Sum / Average',
dataIndex: 'sumOrAverage',
renderer : renderSumOrAverage,
editor: new Ext.form.RadioGroup({
items: [
{boxLabel: 'Sum' ,name: 'rb-auto', width:50},
{boxLabel: 'Average' ,name: 'rb-auto'}
]
})
}


the rendering worked fine, on close firebug says "too much recursion".
i'm not in the mood for debugging this right now, so i will take the combo instead :)


kind regards
tobiu