我正在使用smartclient。我有两个列表网格,我将它们拖放到第三个列表网格中。当我单击一个按钮或某个事件正在发生时,如何获取第三个按钮上的所有记录。我已经尝试了多种方法,比如循环,默认处理程序。ondrop计算,但我不能使用ondelete或类似的东西,以防记录被删除。我提供了一种我尝试过的方法。这段代码来自thrird网格。
onDrop:function(){
alert('dropped');
}
onDropOut:function(){
alert('removed');
}dropout处理程序不工作...
发布于 2014-09-14 02:29:20
如果您在放置第三个记录时想要所有记录
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;
}https://stackoverflow.com/questions/25825812
复制相似问题