2010-11-26 6 views
0
  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, neue Zuhörer() {Dynamisches Hinzufügen von Daten während Erreichen Ende des Scroll Positon

 @Override 

public void handle (GridEvent sein) {

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

EditorTreeGrid Komponente = be.getComponent(); System.out.println (be.getScrollTop()); // Das obige scheint immer
// ändere mich, wenn ich die Geschwindigkeit meiner Schriftrollen ändere.

}

Bitte helfen Sie. });

Antwort

0

Ich habe das funktioniert mit einem LiveGrid und modifiziert das gleiche um ein bearbeitbares Gitter zu unterstützen.

Verwandte Themen