Ext.Net 1.x_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 1.x_Ext.Net.CheckboxSelectionModel类型Ext.grid.GridPanel的某行不能选择_第1张图片

Ext.Net 1.x_Ext.Net.CheckboxSelectionModel类型Ext.grid.GridPanel的某行不能选择_第2张图片

参考资料:伤寒泪

http://www.cnblogs.com/shlcn/archive/2011/08/10/2134197.html

你可能感兴趣的:(server,function,ext)