PDA

View Full Version : GridPanel checkbox problems



pmv
25 Jun 2010, 2:35 AM
Hello all,
I using xtype as grid in that there is select column and in that I used renderer config for checkbox display.I provide dataIndex for it I simply wanted to get value when checkbox is check and when it is uncheck value should also remove. Any Listener for it and how I can do this please help.

xtype:'grid',
id:'idGridtrl',
autoHeight:true,
loadMask: true,
store: trtlUsrServicesStore,
columns:[{
header: "<b>Select</b>",
width:70,
dataIndex: 'SERVICE_ID',
renderer:function(val){return '<input type="checkbox" id="'+val+'"/>'}


}]
Thanks

raj_plays
25 Jun 2010, 2:50 AM
If you want to control the 'checked' status, use Ext.grid.CheckColumn
This will be read only.

If you want to be able to check or uncheck manually and get the value on submit, then use
Ext.grid.CheckboxSelectionModel