The Grid element allows Citizen Developers (CDs) to display data in a table-like format within forms, enabling better organization and a more structured user experience. Let’s walk through the five main property sections of the Grid field and see how each can optimize grid functionality.
Field Configurations
Field Name: The internal name for the field.
Label Name: This is the displayed name that users see in the live application.
Add Grid Elements: Opens a new page where CDs can drag and drop elements into a table format to create the grid structure.
Grid Options
CDs have control over the visibility and functionality of the grid with these options:
Don't Show Grid: Option to hide the grid in the application.
Don't Allow to Add Record: Restricts end-users from adding records.
Don't Allow to Add Records Using Excel: Disables adding records via Excel.
Don't Allow to Download Records to Excel: Prevents end-users from exporting grid records to Excel.
Delete Options: Controls whether end-users can delete records or disables the delete icon altogether.
Multi-select Records to Delete: Enables multi-select deletion of records.
Add Record: Choose the record-adding experience for end-users:
Formats: Pop-up (default), Inline, or Side Panel.
Pop-up Sizes: Adjustable to Large (15-50 elements), Medium (6-14 elements), or Small (1-5 elements). If no size is selected, the system will suggest one based on the number of grid fields.
Edit Record: Choose the record-editing experience for end-users:
Formats: Pop-up (default), Side Panel, Inline, or a combination of Inline & Side Panel or Inline & Pop-up, allowing the end-user to select their preference.
Advanced Grid Options
Customize the grid with these advanced settings:
Enable Aggregates: Available for numeric fields, allowing CDs to apply functions such as Sum, Average, Count, Maximum, and Minimum to selected fields.
Choose Row Height: Adjusts the height of rows to fit content.
Stack Headers: Groups related fields under a common header for better organization. Example: Use Stack Headers to create sections like "Personal Information" (for fields like Name, Email, Phone) and "Address Details" (for fields like Street, City, Postal Code), making it easy for users to locate and complete sections.
Mobile Settings (Mobile-Only)
CDs can select the layout for viewing grids on mobile devices:
List Layout:
Add Record: Available as a pop-up.
Edit Record: Available as a pop-up.
Choose Grid Columns: Select up to two columns for a compact view.
Card Layout:
Choose Card Layout: Predefined Layouts (1, 2, 3) each accommodate up to 6 columns; Custom layout can fit up to 20 columns.
UI Settings
Configure appearance settings for both Headers and Data in the grid:
For Header:
Alignment: Horizontal and vertical alignment options.
Text Wrap: Enables text to continue on a new line within the container.
Font Size: Choose between small, medium, and large.
Font Style: Options include bold, italics, and underline.
Color: Set background, border, and text colors.
For Data:
Alignment: Horizontal and vertical alignment options.
Text Wrap: Keeps text visible within the container.
Font Size & Style: Choose size and styles as with headers.
Color Options: Customize background and text color, including hover colors for an interactive experience.