Your code is a bit hard to understand; please can you explain what you
intend to do by your two stores?

2008/12/3 [EMAIL PROTECTED] <[EMAIL PROTECTED]>

>
>  Dear all,
>            I am struggling to get a gridpanel to display a set of
> records from a store. It displays the first set absolutely fine, but
> when I remove these records from the store and add new ones, then the
> new records are displayed but they are appended to the existing
> displayed records from the store. What I want is for the removed
> records NOT to be displayed and the new ones to be shown using the
> same paging toolbar as the original set of records.
>
> My code is below:
>
>                            final RecordDef recordDef = new RecordDef
> (fieldDef);
>                            final ArrayReader newReader = new
> ArrayReader(recordDef);
>                            final MemoryProxy newProxy = new
> MemoryProxy(resultset);
>
>                            final Store newStore = new Store
> (newProxy ,  newReader , true);
>                            newStore.load();
>                            final Record[] rs = newStore.getRecords();
>
>                            final Store store =
> BioTree.this.resultsDataViewGrid.getStore();
>                            store.removeAll();
>                            store.add(rs);
>                            store.commitChanges();
>
>                            final Store pagingStore = ((PagingToolbar)
> (BioTree.this.resultsDataViewGrid.getBottomToolbar())).getStore();
>                            pagingStore.removeAll();
>                            pagingStore.add(rs);
>                            pagingStore.commitChanges();
>
> Has anybody else had problems displaying new records in a gridpanel?
> If so what's the solution?
>
> Thank you in advance for any guidance that you can give me.
>
> Angus
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to