Hello
I am trying to use the maximizeTile method to maximize a tile after rebinding the datasource.
I have tried iterating through the tiles to find one that contains some text I am looking for, but when I pass this tile as the parameter to maximizeTile, I get a 'object does not support this property or method error.
I cannot reliably use the data index of the tile, as the datasource will have changed.
can anyone help?
Hello,
Are you referring to the maximize method? This is different from the maximizedTile method as maximizedTile returns a reference to the current maximized tile.
The maximize method requires the jquery object of the tile method to be passed in which is the DOM element hosting the tile which will require some DOM traversal depending on your use case.
Hi Sam
yes sorry, I was referring to the maximize method and not the maximizedTile method.
I attempted to iterate through the .tiles collection
var tiles = $("#dashboard").igTileManager("minimizedTiles");
var tileToMaximize;
tiles.each(
function () {
if (this.innerHTML.contains(text) )//where text is identifier of individual data item
{tileToMaximize = this;}
})
$("#dashboard").igTileManager("maximize", tileToMaximize);
but this results in 'the object does not support...' error.
Am I not passing in the right kind of object?
thanks for your help