2014-09-13 91 views
0

我正在使用smartclient。我有兩個listgrids,我拖放項目到第三個。我怎樣才能得到第三個,當我點擊一個按鈕或某個事件正在發生的所有記錄。我已經嘗試了多種方式,例如循環,默認處理程序例如。 ondrop計算,但我不能使用ondelete或類似的情況下刪除記錄。我提供了一種我嘗試過的方式。此代碼是從thrird電網Smartclient獲取所有listgrid記錄

onDrop:function(){ 
       alert('dropped'); 
      } 
onDropOut:function(){ 
       alert('removed'); 
      } 

退學處理程序不工作...

回答

0

,如果你在第三個

onRecordDrop: function(dropRecords, targetRecord, index, sourceWidget){ 
    this.data; // this are all the records in the list grid 
} 

下探現在如果你想的時候所有的記錄想在任何情況下,想象第三個listgrid id =「thirdgrid」

someevent: function(){ 
    thirdgrid.data; //this are the records of the third grid; 
}