GXT: How enable paginator?
I have working proxy:
proxy = new RpcProxy<List<EmpDTO>>() {
@Override
protected void load(Object loadConfig,
final AsyncCallback<List<EmpDTO>> callback) {
EmpDTO empDTO = new EmpDTO();
empService.findByExample(empDTO,
new AsyncCallback<List<EmpDTO>>() {
@Override
开发者_如何学Go public void onFailure(Throwable ex) {
callback.onFailure(ex);
}
@Override
public void onSuccess(List<EmpDTO> result) {
callback.onSuccess(result);
}
});
}
};
BeanModelReader reader = new BeanModelReader();
loader = new BaseListLoader(proxy, reader);
store = new ListStore(loader);
How to integrate pagination?
Here is an example that should answer your question,
http://www.sencha.com/examples/explorer.html#paging
Click the "source" tab at the bottom.
精彩评论