开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜