[Ext.Net]CheckboxSelectionModel类型Ext.grid.GridPanel的某行不能选择
<SelectionModel> <ext:CheckboxSelectionModel Visible="true" ID="UserCheck" runat="server" SelectedRecordID="Status"> <Listeners> <BeforeRowSelect Fn="MyBeforeRowSelect" /> </Listeners> </ext:CheckboxSelectionModel> </SelectionModel>
JS
var MyBeforeRowSelect = function (SelectionModel, rowIndex, keepExisting, record) { if (record.get('Status') != "W") { return false; } else { return true; } }
图 W,S状态
参考资料:伤寒泪
http://www.cnblogs.com/shlcn/archive/2011/08/10/2134197.html