-
18 Oct 2010 9:24 AM #1
[SOLVED]Refresh gridView without removing store
[SOLVED]Refresh gridView without removing store
Solved...
on select row in another grid...
tksCode:... var view = grid.getView(); view.mainBody.update('<div class="x-grid-empty"><center>Não existem contatos para este cliente.</center></div>'); grid.store.reload({params:{id_cliente: seldata.id_cliente}}); ...Last edited by cavallari; 19 Oct 2010 at 11:34 AM. Reason: SOLVED
-
19 Oct 2010 11:29 AM #2
Solved...
on select row in another grid...
tksCode:... var view = grid.getView(); view.mainBody.update('<div class="x-grid-empty"><center>Não existem contatos para este cliente.</center></div>'); grid.store.reload({params:{id_cliente: seldata.id_cliente}}); ...
-
20 Oct 2010 3:29 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Do NOT update the body of a grid yourself.
Set the gridview emptyText to the text you want to display and call:
Code:grid.getStore().removeAll();
-
20 Oct 2010 8:43 AM #4
sorry, I have edited the original post accidentally.
My directProxy is like this:
On removeAll my record is deleted, I just want to refresh the grid.Code:... autosave: true, api:{ read: Acesso.read, updade: Acesso.update, create: Acesso.create, destroy: Acesso.destroy }, ...
Similar Threads
-
GridView refresh row
By micgala in forum Ext GWT: Help & Discussion (1.x)Replies: 7Last Post: 21 Jun 2011, 11:01 AM -
GridView refresh event not firing properly
By nukusmaximus in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 9 Sep 2010, 4:01 PM -
GridView Refresh el is undefined
By koenyn in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 5 Jul 2010, 11:32 PM -
Removing scrollbar allocated space from GridView
By BrightSoul in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 26 Feb 2008, 3:50 PM -
[2.0.1] Gridview/store error when removing last record
By interlock in forum Ext 2.x: BugsReplies: 1Last Post: 31 Jan 2008, 9:45 AM


Reply With Quote