Grids in Smart Devices Applications support the Auto Grow property. Its purpose is to enable scrolling of the whole screen and not only the grid when the grid has more rows to show than the display can show.

Take a look at the Light CRM default screen:

AutogrowScroll2

What if we want the text block "The Companies listed are the following" to scroll too when scrolling the Grid? 

Using Auto Grow Property the Grid can be configured so that when a Grid grows the scroll moves the whole screen instead of just scrolling the grid.

AutogrowFalse2

Considerations

  • The Cells of the Grid must be of fixed height. No element inside de Grid should have AutoGrow enabled.
  • The Grid can't have the search option available.
  • A grid with Auto Grow can't have paging . This is because as the scroll is not going to be on the grid the next page of records is never retrieved from the server.
  • The grids in a table with Auto Grow  enabled must have the Auto Grow property set too. Grids with the scroll in a panel with scroll (nested scrolls) do not work due to Android limitations.

Sample

You can see this example working on the LightCRM (X Evolution 2) sample.

Availability

This options is available as of GeneXus X Evolution 2 Upgrade 4.