This property defines the behavior of the grid's rows when they are selected. This property can be found at the Grids for Smart Devices properties.

Values

Platform Default:
  • Uses the platform default behavior.
  • This is the default value.
Auto Deselect:
  • The grid's Highlighted Background color is shown while the user interacts with the control.
  • The Default Selected Item Layout is not going to be shown even if it is defined or not.
Keep Selection While Executing:
  • If the Default Selected Item Layout is defined it is shown, if not, the grid's Highlighted Background color is shown.
  • The selection ends when the Default Action ends.
  • This value only makes sense when the Default Action of the Grid is defined.
  • If an item is selected, and the user selects it again, the item is still going to be selected and the Default Action of the Grid is executed again.
Keep Until New Selection:
  • If the Default Selected Item Layout is defined it is shown, if not, the grid's Highlighted Background color is shown.
  • The selection ends when another selection is done.
  • This value only makes sense when the Default Selected Item Layout is defined.
  • If an item is selected, and the user selects it again, the item is going to be deselected and the Default Action is executed again

Platform Default values for iOS:

  • If the Default Action is defined, then the Keep Selection While Executing value is the default.
  • If the Default Aciton is not defined and the Default Selected Item Layout is defined, then the Keep Until New Selection value is the default.

Platform Default values for Android:

  • If the Default Action is defined, then the Auto Deselect value is the default.
  • If the Default Aciton is not defined and the Default Selected Item Layout is defined, then the Keep Until New Selection value is the default.

Behavior when Multiple Selection is allowed

When the Grid has Multiple Selection, will behave such as the Keep Until New Selection value.

Example

Let's take as example the EventDay sample KB and see how different values of the Selection Type property changes the behavior of a row when it is selected. For instance in the Sessions Grid at the List level of the WWSD Session:

Using the Auto Deselect value the Hightlighted Background color is shown only when the user presses the row, after that the row is deselected automatically:
Selection Type AutoDeselect Grid image Flecha_der Selection Type AutoDeselect iPad screenshot

 

Using the Keep Selection While Executing value the Hightlighted Background color is shown until the Default Action ends:
Selection Type KeepWhile image Flecha_der Selection Type KeepWhile iPad screenshot

 

Availability

As from GeneXus Tilo Beta 3

Scope

Objects Objects for Native Mobile applications development
Controls Grids for Smart Devices
Platforms Android platform, Apple platform

See also