table.setPageSize(table.getRowCount()) (repeat each time rowCount changes, so possibly from a RowCountChangeEvent.Handler)
On Sunday, May 11, 2014 9:12:32 AM UTC+2, Tom wrote: > > Here I have itemDetailTable > > CellTable<List<String>> itemDetailTable = new CellTable<List<String>>(); > ListDataProvider<List<String>> dataProvider = new > ListDataProvider<List<String>>(); > dataProvider.addDataDisplay(itemDetailTable); > final ScrollPanel itemDetailScrollPanel=new ScrollPanel(); > FlowPanel itemDetailFlowPanel=new FlowPanel(); > itemDetailFlowPanel.add(itemDetailTable); > itemDetailScrollPanel.add(itemDetailFlowPanel); > > Now my List<List<String>> has 16 rows, however, after ran it showed the > table with *15 rows* only. If I want to see the row 16 then need to click > on the last cell of the table (the cell in the bottom right handside of the > table) & enter arrow-down key then it will show the *record 16*. > > If i use Simplepager > > SimplePager itemDetailPager = new SimplePager(); > itemDetailPager.setDisplay(itemDetailTable); > > then it will have 2 page, the 1st page has 15 records and the 2nd page has > 1 record. > > That is not OK as I want the table to show all the records at once and > won't hide any records. > > Someone said that maybe cos I use List<String> & that is causing the > problem, but I am not sure if that is the main cause. > > But If I only has 14 records, then it showed *all 14 records* without any > problem. > > SO How to fix it? > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
