在到达滚动位置结束时动态添加数据

时间:2010-11-26 07:15:51

标签: gxt

         To limit the number of records fetched, I plan to add more records when we reach the end of the data in an EditorTreeGrid . I have tried the following code

myTree.addListener(Events.BodyScroll,new Listener(){

     @Override

public void handleEvent(GridEvent be){

                  //I need to check if the scroll has reached the end to the list and 
                    then add more records to the store .

EditorTreeGrid component = be.getComponent();    的System.out.println(be.getScrollTop());                         //以上似乎总是如此                         //随着我改变卷轴的速度而改变。

}

请帮忙。  });

1 个答案:

答案 0 :(得分:0)

我使用LiveGrid进行了此操作并对其进行了修改以支持可编辑的网格。