To: google-web-toolkit google-web-toolkit@googlegroups.com
Sent: Tue, Jan 10, 2012 3:05 am
Subject: Re: DataGrid Object not displaying more than 50 items...
I believe you'd have to call setPageSize *before* changing your
ListDataProvider; but yes, there's no reason it wouldn't work
Do you use the pager with your DataGrid?
Also check if you can see elements being added to the DOM (firebug-it).
I would have a look at showcase how it works on the example:
http://gwt.google.com/samples/Showcase/Showcase.html#!CwDataGrid
Kris
--
You received this message because you are
Hi Kris,
I looked at the example. But, the example is loading static data and
it's using pagination. However, I am loading the data as a result of
a DB query in a for loop (all at once), and I'm using a scrollbar to
view the data (not pagination).
Any other ideas?
Thanks,
Bill
On Jan 10,
Hi Kris,
I was looking more at the sample program you suggested
(ContactDatabase.java), and I saw this method:
/**
* Add a display to the database. The current range of interest of
the display
* will be populated with data.
*
* @param display a {@Link HasData}.
*/
public void
DataGrid defaults to a pageSize = 50 (see
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/DataGrid.html#DataGrid())
You have to call setPageSize the either a very big value, or at least the
size of your data if you don't want paging.
That said,
Broyer t.bro...@gmail.com
To: google-web-toolkit google-web-toolkit@googlegroups.com
Sent: Tue, Jan 10, 2012 2:26 am
Subject: Re: DataGrid Object not displaying more than 50 items...
DataGrid defaults to a pageSize = 50 (see
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt
I believe you'd have to call setPageSize *before* changing your
ListDataProvider; but yes, there's no reason it wouldn't work:
ListDataProviders simply calls setRowCount/setRowData on its attached
HasData whenever you change its getList().
--
You received this message because you are
Hi All,
I am trying to load the DataGrid with the results of a query. I have
a DataProvider object connected to the DataGrid table,
and I use a for loop to do a list.add() of a object I created
dynamically that represents a row of data in the table.
However, it seems the table does not store