Smartclient获取所有listgrid记录
我正在使用smartclient。我有两个列表网格,我可以将项目拖放到第三个列表网格。当我单击按钮或某个事件正在发生时,如何获取第三个上的所有记录。我尝试了多种方法,例如循环、默认处理程序(例如ondrop calculate),但在删除记录的情况下,我不能使用ondelete或类似的方法。我提供了一种我尝试过的方法。此代码来自第三个网格Smartclient获取所有listgrid记录,grid,smartclient,listgrid,Grid,Smartclient,Listgrid,我正在使用smartclient。我有两个列表网格,我可以将项目拖放到第三个列表网格。当我单击按钮或某个事件正在发生时,如何获取第三个上的所有记录。我尝试了多种方法,例如循环、默认处理程序(例如ondrop calculate),但在删除记录的情况下,我不能使用ondelete或类似的方法。我提供了一种我尝试过的方法。此代码来自第三个网格 onDrop:function(){ alert('dropped'); } onDropOut:fu
onDrop:function(){
alert('dropped');
}
onDropOut:function(){
alert('removed');
}
如果要在第三条记录上删除所有记录,则退出处理程序不起作用…
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;
}