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.
精彩评论