2012-06-20 49 views

回答

1

這樣:

dojo.connect(grid,"onRowClick",function(event){ 
var items = grid.selection.getSelected(); 
    dojo.forEach(items, function(selectedItem) { 
      if (selectedItem !== null) { 
       var id = grid.store.getValues(selectedItem, 'ID'); 
        #whatever you want to do... 
      } 
    }); 

}); 
相關問題