【问题标题】:Smartclient get all listgrid recordsSmartclient 获取所有 listgrid 记录
【发布时间】:2014-09-13 17:33:24
【问题描述】:

我正在使用智能客户端。我有两个列表网格,我将项目拖放到第三个。当我单击按钮或发生某个事件时,如何获取第三个记录中的所有记录。我尝试了多种方式,例如循环,默认处理程序,例如。 ondrop 计算,但如果记录被删除,我不能使用 ondelete 或类似的东西。我提供了一种我尝试过的方法。此代码来自第三网格

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

dropout 处理程序不起作用...

【问题讨论】:

    标签: grid smartclient listgrid


    【解决方案1】:

    如果你想要第三个记录时的所有记录

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多