Announcement

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

  • TileGrid - tiles are flashing when bind two tile grids to the same data

    Please see the simple sample code i run from SmartClient feature explorer or from my application.
    When i create more than one tile grid and bind them to the same data, tiles are flashing. the layout try remove and add tiles child again and again in loop.
    When i clone the data before binding to the second tile grid, the problem is not occur.
    It's seems to be a bug and not a normal behavior

    Thanks!

    The sample code:

    var data = [
    {
    commonName:"Tile 1"
    },
    {
    commonName:"Tile 2"
    },
    ]

    var cloneData = isc.clone(data);

    isc.TileGrid.create({
    border: "1px solid black",
    tileWidth: 100,
    tileHeight: 100,
    height: 300,
    width: 300,
    showAllRecords: true,
    data: data,
    fields: [
    {name:"commonName"}
    ]
    });

    isc.TileGrid.create({
    left: 500,
    border: "1px solid black",
    tileWidth: 100,
    tileHeight: 100,
    height: 300,
    width: 300,
    showAllRecords: true,
    data: data, // cloneData (using clone data fix the problem)
    fields: [
    {name:"commonName"}
    ]
    });


Working...
X