PDA

View Full Version : RowSelect problem... !!!!



dima
5 Oct 2007, 1:50 AM
How disable Selected row in grid????


grid = new Ext.grid.Grid('example-grid', {
ds: ds,
//autoHeight:true,
autoSizeHeaders:true,
autoSizeColumns: true,
loadMask: {msg: Loading...'},
monitorWindowResize:true,
trackMouseOver :false,
selModel: new Ext.grid.RowSelectionModel(
{
singleSelect:true
}),
cm: cm
});

kenshinlk
8 Oct 2007, 6:53 PM
I just meet this problem ,too~!
I resolve that by cancel the row selection.Focus to the red style font.
Forgive to my pool English:">

var rowSelectionModel = new Ext.grid.RowSelectionModel({singleSelect:true});
rowSelectionModel.on('beforerowselect',function(sm,rowIndex,keepExisting){
return false;
});
grid = new Ext.grid.Grid('mailList',{
ds: ds,
cm: cm,
autoHeight:false,
autoSizeColumns:false,
autoSizeHeaders:true,
enableColumnMove:false,
enableColumnHide:false,
selModel: rowSelectionModel,
loadMask: true,//加载时出现Loading效果
autoExpandColumn:gridTitle.length-2//最后1列可视列自动填充
});

dima
9 Oct 2007, 12:51 AM
I just meet this problem ,too~!
I resolve that by cancel the row selection.Focus to the red style font.
Forgive to my pool English:">

var rowSelectionModel = new Ext.grid.RowSelectionModel({singleSelect:true});
rowSelectionModel.on('beforerowselect',function(sm,rowIndex,keepExisting){
return false;
});
grid = new Ext.grid.Grid('mailList',{
ds: ds,
cm: cm,
autoHeight:false,
autoSizeColumns:false,
autoSizeHeaders:true,
enableColumnMove:false,
enableColumnHide:false,
selModel: rowSelectionModel,
loadMask: true,//加载时出现Loading效果
autoExpandColumn:gridTitle.length-2//最后1列可视列自动填充
});

big great....