1. #1
    Sencha User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    cavallari is on a distinguished road

      0  

    Red face [SOLVED]Refresh gridView without removing store

    [SOLVED]Refresh gridView without removing store


    Solved...

    on select row in another grid...
    Code:
    ...
    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}});
    ...
    tks
    Last edited by cavallari; 19 Oct 2010 at 11:34 AM. Reason: SOLVED

  2. #2
    Sencha User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    cavallari is on a distinguished road

      0  

    Default


    Solved...

    on select row in another grid...
    Code:
    ...
    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}});
    ...
    tks

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    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();

  4. #4
    Sencha User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    cavallari is on a distinguished road

      0  

    Default


    sorry, I have edited the original post accidentally.

    My directProxy is like this:
    Code:
    ...
    autosave: true,
    api:{
      read: Acesso.read,
      updade: Acesso.update,
      create: Acesso.create,
      destroy: Acesso.destroy
    },
    ...
    On removeAll my record is deleted, I just want to refresh the grid.

Similar Threads

  1. GridView refresh row
    By micgala in forum Ext GWT: Help & Discussion (1.x)
    Replies: 7
    Last Post: 21 Jun 2011, 11:01 AM
  2. GridView refresh event not firing properly
    By nukusmaximus in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Sep 2010, 4:01 PM
  3. GridView Refresh el is undefined
    By koenyn in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 5 Jul 2010, 11:32 PM
  4. Removing scrollbar allocated space from GridView
    By BrightSoul in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 26 Feb 2008, 3:50 PM
  5. [2.0.1] Gridview/store error when removing last record
    By interlock in forum Ext 2.x: Bugs
    Replies: 1
    Last Post: 31 Jan 2008, 9:45 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar