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.
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.