1. 程式人生 > >EXT 雙擊事件

EXT 雙擊事件

原文地址:http://blog.csdn.net/sanshou/article/details/7967470

定義雙擊事件

var onrowdoubleclick=function(grid,index,e){

var selectionModel=grid.getSelectionModel();
var record=selectionModel.getSelected();
window.opener.addcode(record.get('jcode'),record.get('zjh'));
window.close();

}

grid加監聽

grid.addListener('rowdblclick',onrowdoubleclick);

拓展:

http://qsrock.iteye.com/blog/209658