zoukankan      html  css  js  c++  java
  • Extjs Grid获取当前选中的行号

    【精华】

       onEditTestInfo: function (btn) {
            //创建并弹出窗体
            var grid = btn.up('test_test02Grid');
            var rows = grid.getSelectionModel().getSelection();
            if (rows.length == 0) {
                Ext.Msg.Show(iGeneral.iSeleteOneItem, iGeneral.iNote);
                return false;
            }
            else {
                Ext.create('TMS.Test.Test02Window', {
                    record: rows[0],
                    rowIndex:grid.getStore().indexOf(rows[0]),
                    edit: true,
                    title: 'EditWindow'
                }).show();
            }
        }

    【学习】

    var linenum=titleGird.getSelectionModel().lastActive;
    titleGird.getSelectionModel().deselectRow(linenum);

    【详细】:

    http://hi.baidu.com/huahua035/item/e051d5e514cc5a3f4ddcafa2

  • 相关阅读:
    A
    B
    A
    A
    B
    C
    有趣的平方和的推导
    一篇写的非常好的匈牙利算法文章
    2014 UESTC Training for Data Structures G
    2014 UESTC Training for Data Structures H
  • 原文地址:https://www.cnblogs.com/denghuachengle/p/3642386.html
Copyright © 2011-2022 走看看