Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Performance comparison between TileGrid and TileLayout

    To create tile view we have two options:

    1. We can use TileGrid which needs tile constructor. Tile Grid internally extends TileLayout which is like actual tile implementation.
    Tile Grid internally handles creation of tiles with the datasource passed to it.

    2. We can use TileLayout like :
    TileLayout tileLayout = new TileLayout();
    tileLayout.setTilesPerLine(3);
    tileLayout.setHeight(400);
    tileLayout.setWidth(500);
    tileLayout.setBorder("1px solid");


    for(Record : DataSource){// iterator over records of datasource
    //create Tile or canvas or any VLayout or any component
    //add above component to tileLayout.
    //for eg:
    SectionStack ss = new SectionStack();
    tileLayout.addChild(ss);
    }


    If I go with the 2nd approach how it will impact my application performance.




    #2
    A TileGrid creates tiles only as records are loaded and/or viewed by a user, and allows recycling of Tile instances (see recycle tiles). TileGrid therefore scales to large numbers of records, TileLayout is for laying out a smaller number of widgets only.

    How many records each widget can handle depends on the complexity of the per-record display, browser, machine, OS, skin and skin customizations, and many other factors.

    Comment


      #3
      Thanks for the explanation.

      Comment

      Working...
      X