This property is used in Smart Device applications, more specifically to develop its user interface. It allows you to automatically adjust the height of the control which content (i.e. text) is larger than the size given by the container.

Values

True The height of the control grows automatically, as much as necessary to show all the content.
False The height of the control does not grow automatically. It is up to the control to adjust the content when it’s size is larger, i.e. containers may add scroll if possible, text controls may trunk text or add scroll, etc.

Controls - Default Value

This property applies to different types of Smart Device controls: containers and text. The default value depends on the type of control. The following table lists the controls that support this property and shows their default values.

Containers Controls Default Value
Grid False
Table True
Group True
Text Controls
Attribute False
Variable False
LongVarChar (Attribute or variable) True
Texblock False

Example

 

In some cases you may wish to see many records in the grid, although the text does not fit, and in other cases you may wish to see the whole text, although the grid is larger and less rows are shown.

Tips

The following table shows the combination of Auto Grow property and its effect.

    ATTRIBUTE
    True False
T
A
B
L
E
T
r
u
e
The attribute grows up if the item is bigger than the cell where is contained, and the table grows up displaying it scrollable. The table might grow up, but since the attribute does not, the table does not. 
F
a
l
s
e
The Table remains without growing, therefore the attributes inside it are limited by the table. In other words, the auto grow in the attributes are ignored. (*) None of them grow up.

Note: (*) This behavior changed between GeneXus X Evolution 3 and GeneXus 15

Scope

Applies to Smart Devices Controls (see Table 1)
Platforms Android platform, Apple platform, BlackBerry Smart Devices

See Also

Auto Grow in Grids for Native Mobile Applications