Official Content

Shows an image when the Grid has no data.

Scope

Generators: Android, Apple
Controls: Grid

Samples

Consider the following Transaction object called Customer:

Customer
{

   CustomerId*
   CustomerName
   CustomerAddress
   CustomerPhone
}

Suppose you want to show the customer's list. To do so, apply the Work With for Smart Devices pattern to the Customer Transaction. After that, create a Menu object and add to it an entry point that calls the WorkWithDevicesClient.Client.List().

When the Menu object is executed and the entry point is taped, if there are customers in the database, the customer's list will be shown. However, if there are no records, the list will appear empty. If this last case occurs, to avoid showing an empty space you can complete the Empty Grid Background Image property with an image and you will see it like shown below:

:emptydataset

See Also

Empty Grid Text property
Empty Grid Text Class property
Empty Grid Background Class property

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant