The reason I ask is because the grid may not always have a fixed width as defined by a style rule property. The grid's width may depend on the space available on a web page (which at the same time depends on the viewer's monitor settings).

So, after the control size has been set...

Is there a way to retrieve the width/height via API method calls?
Is there such a thing as objGrid.getControlSize()?
If not, how else could one go about this (without the use of css styles)?

Mario

Thursday, February 9, 2006

Mario,

obj.setSize(w, h);

is equivalent to

obj.setStyle("width", w + "px");
obj.setStyle("height", h + "px");

So in case you want to use % width or do some calculations - you may use setStyle methods directly. It also works in opposite direction,