george.wei
31 Aug 2007, 2:02 AM
Hi! All,
If a column is not bound to a field of grid's data source, can I retrieve the value of a cell belongs to this column?
For example:
var colModel=new Ext.grid.ColumnModel([
{header:"Selected",width:40,
editor: new Ed(new fm.Checkbox())},
{id:"id",header:"ID",width:20,sortable:true,locked:true,dataIndex:"id"},
{header:"Name",width:100,sortable:true,dataIndex:"product.name"}
]);
grid=new Ext.grid.EditorGrid("grid-example", {
ds:ds, //ds is an instance of Ext.data.Store
cm:colModel,
selModel: new Ext.grid.RowSelectionModel({singleSelect:true})}
);
How to know which records are selected? Thanks for any clues.
Regards,
George
If a column is not bound to a field of grid's data source, can I retrieve the value of a cell belongs to this column?
For example:
var colModel=new Ext.grid.ColumnModel([
{header:"Selected",width:40,
editor: new Ed(new fm.Checkbox())},
{id:"id",header:"ID",width:20,sortable:true,locked:true,dataIndex:"id"},
{header:"Name",width:100,sortable:true,dataIndex:"product.name"}
]);
grid=new Ext.grid.EditorGrid("grid-example", {
ds:ds, //ds is an instance of Ext.data.Store
cm:colModel,
selModel: new Ext.grid.RowSelectionModel({singleSelect:true})}
);
How to know which records are selected? Thanks for any clues.
Regards,
George