View Full Version : RowSelect problem... !!!!
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列可视列自动填充
});
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....
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.