【精华】
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);
【详细】: