yui-ext 双击Grid行,获取cell值
1、需要定义rowdbclick
2、获取相应cell的值
var onRowDoubleClick = function(grid, rowIndex, e){ var selectionModel = grid.getSelectionModel(); var record = selectionModel.getSelected(); alert(record.data['proid']); } grid.addListener('rowdblclick', onRowDoubleClick);
单击则只需将'rowdblclick'改成'rowclick'