setPaginal for Grid problem
14 Aug 2011 18:20:24 GMT
20 Aug 2011 11:44:31 GMT
20 Aug 2011 11:44:31 GMT
Hi Antjicsp,
for set paging by program at the bottom of grid,
you should insert the paging component before 'the component just after the grid',
see the zscript fragment in the simple sample below, click 'Run' button at top right to see the result.
ZK - Open Source Ajax Java Framework
I have a problem. I have a method that build a Grid thas is used by a servlet that extends a GenericRichlet. When i do:
grid.setMold("paging");
grid.setPageSize(5);
it´s ok, the paginated block is rendered.
but when i do:
grid.setMold("paging");
Paging paging = new Paging();
paging.setId("paging_"+identifier);
paging.setTotalSize(50);
paging.setPageSize(5);
grid.setPaginal(paging);
grid.setPagingPosition("bottom");
the paginated block is not rendered.
Does anyone know what the problem is?
thanks.