Author Login
Post Reply
Em Thu, 03 Jul 2008 16:35:05 -0300, Martijn Brinkers (List)
<martijn.list@(protected):
> I know about GridDataSource and have implemented that already. The
> problem I face is that I do not know how many rows the GridDataSource
> will return. I only know if there is more data the moment I request the
> data.
>
> Would it be possible to specify MAXINT rows, remove the pager and create
> my own pager that only contains a previous and next link?
My approach is this: in the int getAvailableRows() method, I perform a
query that only returns the number of results, without returning actual
data. Then, in the prepare() method, I fetch the data. From here, Grid
takes care of the rest.
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)