开发者

Dynamically adding data while reaching end of the Scroll positon

开发者 https://www.devze.com 2023-01-27 14:10 出处:网络
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
         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
开发者_StackOverflow中文版

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()); // The above always seems to

//change as I change the pace of my scrolls .

}

Please help . });


I got this working using a LiveGrid and modified the same to support an editable grid.

0

精彩评论

暂无评论...
验证码 换一张
取 消