【精华】

   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

相关文章:

  • 2021-12-28
  • 2021-09-16
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-03-03
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案