1. #1
    Ext User
    Join Date
    Oct 2008
    Posts
    67
    Vote Rating
    0
    Ajish is on a distinguished road

      0  

    Default Refresh problem

    Refresh problem


    hi

    I need to refresh one grid item inside layout window

    grid is inside center region of layout window

    please any one help

  2. #2
    Sencha Premium Member
    Join Date
    Jun 2008
    Location
    Perth, Australia
    Posts
    30
    Vote Rating
    0
    hhandoko is on a distinguished road

      0  

    Talking One way is to reload the store

    One way is to reload the store


    Do you mean you want to reload the grid? Not one row in the grid, yes?

    If so, just reload the grid store.

    PHP Code:
    function reload_item_grid(){item_store.load()};
        
    reload_item_grid(); 

  3. #3
    Ext User
    Join Date
    Oct 2008
    Posts
    67
    Vote Rating
    0
    Ajish is on a distinguished road

      0  

    Default Refresh Problem

    Refresh Problem


    thanks 4 ur replay

    Reloading store is possible that i know but in my case it is little bit different


    i have two buttons on my panel ,
    when clicking on 1st the grid will be populated from one table in db

    and on 2nd button click the same grid will be populated with different table in db

    so i am using a dynamic grid and cloumn model


    when clicking on buttons i am reloading store according to different tables


    but the grid is in different region of the panel and
    , i just need to recreate or refresh
    the grid (or container of the grid)

    i dont know howw ? please help

  4. #4
    Sencha Premium Member
    Join Date
    Jun 2008
    Location
    Perth, Australia
    Posts
    30
    Vote Rating
    0
    hhandoko is on a distinguished road

      0  

    Talking Hmm... Can you clarify?

    Hmm... Can you clarify?


    So what you mean is that you have one grid, that can load two different data sets based on the button clicked.

    Not only you want to reload the data, you also want to recreate the grid to reflect the column model. Yes?

    Probably the simplest solution that I can think of is to create two grid and swap them (or the container) over with a card layout.

    It would work like in the "Layout Browser" example:
    http://www.extjs.com/deploy/dev/exam...t-browser.html

    If you post your code, I can probably give you a better answer...

Thread Participants: 1