PDA

View Full Version : Buffered Grid - need help to understand the implementation.



kmi1177
13 Apr 2011, 10:34 AM
Hi,
I was going through the Buffered Grid example(http://www.sencha.com/examples/#bufferedgrid).
Want to know that while adding listener to the Grid why we need GridEvent<Post>, cant we add listener as :

grid.addListener(Events.Attach, new Listener<GridEvent>() {
public void handleEvent(GridEvent be) {
loader.load(0, 500);
}
});

I want to understand the need/importance of GridEvent<Post> for the example.

kmi1177
13 Apr 2011, 10:53 AM
Sven.. anyone.. any help on this please...

blay
15 Apr 2011, 6:56 AM
Post is the model used in the Grid