日期:2014-05-16  浏览次数:20348 次

Extjs grid 得到选中行的列数据
function getSelectedTableName() {
	var grid = Ext.getCmp('tempTableGridId');
	var rowSelectionModel = grid.getSelectionModel();
	if (rowSelectionModel.hasSelection()) {
		var record = rowSelectionModel.getSelected();
		var tableName = record.get('tableName');
		return tableName;
	} else {
		return '';
	}
}

?