[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状态
![[Ext.Net]CheckboxSelectionModel部类Ext.grid.GridPanel的某行不能选择](http://img.reader8.net/uploadfile/jiaocheng/2014/0125/201401251814032512.jpg)
![[Ext.Net]CheckboxSelectionModel部类Ext.grid.GridPanel的某行不能选择](http://img.reader8.net/uploadfile/jiaocheng/2014/0125/201401251814032513.jpg)
参考资料:伤寒泪
http://www.cnblogs.com/shlcn/archive/2011/08/10/2134197.html