Ext.Net 1.x_Ext.Net.CheckboxSelectionModel类型Ext.grid.GridPanel的某行不能选择

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/david_520042/article/details/7904250
                <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

展开阅读全文

没有更多推荐了,返回首页