Announcement

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

    TileGrid : is there a way with SmartGWT to build a "windows-8-like" tile menu?

    Hello,

    I need to display a "windows-8-like" tile menu, qith tiles with different sizes, column and row span... potentially dragable (but not required yet). Is there a way to do this with SmartGWT?

    I got the showCase custom sample and tried to customize it. For instance, I tried to add a dataArrivedHandler and to set each tile size independantly depending on its record. But every try fails, every tiles always have the same size and there is no tile span.

    I need some help to find the right way to render this.

    #2
    The TileGrid requires uniform tiles when working with a DataSource, because that's the only way that load-on-demand can be achieved. Its superclass TileLayout allows different sizes of tiles and has a few possible layouts you can choose via tileLayout.layoutPolicy.

    Ultimately you will probably want to either:

    1. go with TileLayout, but have some of the 'tile" components you provide actually represent two different records (eg, the tile might be a VLayout or HLayout with a 50/50 interior split)

    2. just roll your own container class as a subclass of Canvas, possibly using VLayout, HLayout or even TileLayout as sub-containers for some parts of the work

    Comment


      #3
      OK. Thanks. I'll probably create my own container (subclass of Canvas) with VLayout and HLayout sub-containers.

      Comment

      Working...
      X