1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    3
    Vote Rating
    0
    s.furuichi is on a distinguished road

      0  

    Default GridPanel is displayed in TabPanel respectively

    GridPanel is displayed in TabPanel respectively


    Hi all,

    I want to display two GridPanel that applies the search inputbox to TabPanel.

    How should I do to display two kinds of data by one GridPanel?

    I want you to teach the method of switching the data set in the change event of
    the TabPanel.

    Tahnks.

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,360
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    are you looking to show two datasources at the same time or one at a time, flip flopping btwn the two?

  3. #3
    Ext User
    Join Date
    Jan 2008
    Posts
    3
    Vote Rating
    0
    s.furuichi is on a distinguished road

      0  

    Default Re: GridPanel is displayed in TabPanel respectively

    Re: GridPanel is displayed in TabPanel respectively


    Quote Originally Posted by djliquidice View Post
    are you looking to show two datasources at the same time or one at a time, flip flopping btwn the two?
    Dear djliquidice,

    Sorry, The answer is late because there is a time difference.

    When you switch two tabs,

    I think data is acquired in timing in which the tab is switched the response is bad.

    I want to acquire two information at the same time in the event of onReady.
    (Real time is unnecessary)

    ex.
    Ext.onReady(function(){
    var dsA = new Ext.data.Store({ ....
    var dsB = new Ext.data.Store({ ....

    dsA.load({params:{start:0, limit:20}});
    dsB.load({params:{start:0, limit:20}});
    });

    The problem is...
    The following are correct and it doesn't operate in the event that switches the tab.

    tab.on('tabchange', function(e, tabPanel){
    tabPanel.add(grid);
    if(.....){
    grid.store = dsA;
    }else{
    grid.store = dsB;
    }
    grid.render();
    });
    *I want to change the col of grid.

    Of course, the way that prepares two GridPanels is not cared about either.

  4. #4
    Ext User
    Join Date
    Jan 2008
    Posts
    3
    Vote Rating
    0
    s.furuichi is on a distinguished road

      0  

    Default


    Quote Originally Posted by s.furuichi View Post
    Dear djliquidice,
    Of course, the way that prepares two GridPanels is not cared about either.
    It is a little self-solution.

    It was made to switch in the tab after two GridPanels had been made by onReady event.

    As for two grids, render method cannot be done at the same time.
    (Is the reason for another one that it doesn't see it in the tab?)

Thread Participants: 1