bryan10
25 Jan 2012, 5:32 AM
I would like to have a group of radio buttons in a grid column.
and then it is required to determine which button the user has
clicked.
I have created the column renderer below:
Is there a way of setting the id of the radio button to be
different for each row?
n.b. aswell as the radio button column I have used
Ext.selection.CheckboxModel to create a checkbox column.
columns: [
...
{
html: 'Test',
dataIndex: 'test',
renderer: function(value) {
return '<input type="radio" name="group1" onclick="dispmsg()"/>';
}
},
...
]
Please advise if there's a better way of doing this?
Thank you,
bryan
and then it is required to determine which button the user has
clicked.
I have created the column renderer below:
Is there a way of setting the id of the radio button to be
different for each row?
n.b. aswell as the radio button column I have used
Ext.selection.CheckboxModel to create a checkbox column.
columns: [
...
{
html: 'Test',
dataIndex: 'test',
renderer: function(value) {
return '<input type="radio" name="group1" onclick="dispmsg()"/>';
}
},
...
]
Please advise if there's a better way of doing this?
Thank you,
bryan