Hello,
I am using:
TileGrid.setData(TileRecord data)
How is it possible later to get a specific record from the TileGrid?
Hello,
I am using:
TileGrid.setData(TileRecord data)
How is it possible later to get a specific record from the TileGrid?
after creating the class for griddata which extends to TileRecord,
you can get the records from the fields through tile record click..
exmaple…
tileGrid.addRecordClickHandler(new RecordClickHandler() {
public void onRecordClick(RecordClickEvent event) {
TileRecord record = event.getRecord();
formfield1.setValue(record.getAttribute("StringProperty1"));
formfield2.setValue(record.getAttribute("StringProperty2"));
I would like to get the records before clicking on the Tiles.
I set the TileGrid on the construction of a Dialog and then, when the Dialog appears I need to select the first Tile (if there is one)
I would like to see how many tiles are there and if >0 to call selectRecord(0)
Selecting the Record on constructor the dialog does not appear and my application hangs, but I can select them when the Dialog is visible.
I didn’t see function that gives me information on how many records are in the Grid or how to get a specific record.
Thank you again.
I’ll add the API.
Thank you sjivan
Added TileGrid.getData to SVN.