If you're only adding to the end of the list, then keep track of how many items you've already added, and call updateRowData (prevNumAdded - 1, newData);
If you're changing things / adding things in the middle, you can do all sorts of complicated things to figure out where the changes are, and only give your CellList the changes, but you're probably better off simply replacing everything and letting CellList worry about it. Greg On Feb 24, 4:57 am, Andreas <[email protected]> wrote: > I have a celllist where I want add data loading from server and the > list should show all data. I use a AnsyncProvider and when I > succecfully get my data from the server I want to add the data to the > celllist. The only way I got this work is to hold a list of the data > I've got from the server, where I add incoming data and then calling > updateRowData with the list of all incoming data: > List<Response> list; > onSuccess(Response response){ > list.addAll(response.getItems()); > list.addAll(response); > display.setVisibleRange(0, list.size()); > asyncDataProvider.updateRowData(0, list); > > } > > But this force the CellList to redraw the the list with the whole > dataset not only the new one. Like in the showcase example of cellList > (http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList). > > So my question how can I show all data and only the new one will be > added to the view. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
