yui-ext 双击Grid行,获取cell值

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);

 

你可能感兴趣的:(ext,yui)