How to add multiple children ?

I am using a tabSet , and want to include a listGrid and a button in one of the pane.
But unable to add multiple children.
I have tried these many things:

Canvas.create({
ID:“pane1”,
children:[list1,button1]
});

Canvas.create({
ID:“pane1”,
children:[{list1},{button1}]
});

Canvas.create({
ID:“pane1”,
children:{list1,button1}
});

Canvas.create({
ID:“pane1”,
children:{[list1],[button1]}
});

But none of them worked.

one more thing can anyone guide me how to increase the height of a row in a listGrid and how to add an image in a listGrid and call its onclick event . column of a listGrid.

The first approach is correct, however, Canvases don’t manage layout in any way, so what’s happening is that list1 and button1 are rendering on top of each other. I recommend using either an HLayout or VLayout or, if you really do want to manage positioning yourself, set left/top on list1/button1 to place them.

I think the position is correct, because when i dont use tabSet the listGrid and button both appear at the desired position.

Also can you tell me how to increase the height of a row of listGrid

The positioning problem we mentioned would explain what you’re seeing. Something else could be wrong as well, but of course no one can help with that unless you should more code.

By the way, the second, third and fourth examples you showed are not valid JavaScript. This would be reported by any good JavaScript code editor (eg Aptana) and by the various tools we recommend in the Debugging topic. Be sure to read this, you can do a lot of self-help with it.

listGrid.cellHeight affects the height of ListGrid rows.

thnx a lot buddy.