1. #1
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    528
    Vote Rating
    0
    Eric24 is on a distinguished road

      0  

    Default One Grid vs Multiple Grids

    One Grid vs Multiple Grids


    A philosophical question of sorts: In an app that uses a half-dozen or so grids, but will only ever display one grid at a time, is it better to create each of the possible grids (on a card or tab layout, for example) and switch between them, or create a single grid and "reconfigure" the grid to a new datastore and column model? Visually, either approach has exactly the same effect. Any reason/rationale to use one approach over the other? What other factors would come into play that might sway the decision one way or the other?

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    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


    I would go w/ using one grid and reconfiguring it. just remember that you lose selections when doing so.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Location
    Lincoln, NE
    Posts
    235
    Vote Rating
    0
    jpnet is an unknown quantity at this point

      0  

    Default


    I use one grid. I was more or less thinking from a resource standpoint... that having a lot of grids stored in memory may bog down the browser. Does anyone else have any experience with this?

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

      0  

    Default


    Is grid reconfiguration still the preferred way for ExtJs 4.2.x too?