Extjs添加行双击事件
var grid = new Ext.grid.GridPanel({ store: store, trackMouseOver: false, disableSelection: true, autoHeight: true, autoWidth: true, autoScroll: true, viewConfig: { forceFit: true }, loadMask: true, sm: new Ext.grid.RowSelectionModel({ singleSelect: true }), columns: [new Ext.grid.RowNumberer(), { header: '录音文件名', dataIndex: 'FileName', sortable: true }] }); grid.addListener('rowdblclick', rowdblclickFn); function rowdblclickFn(grid, rowindex, e) { var select = grid.getSelectionModel(); var data = select.getSelected().data; var filename = data.FileName; alert(filename); }