GridPanel places the elements in grid cells.
Grid lines are only visible during panel manipulations in Lycia Form Designer, and are not visible at runtime. You can define the number of rows, columns, and their sizes.
Each element must occupy at least one grid cell.
Two elements cannot occupy the same grid cell.
Form XML code:
GridPanel XML code:
<form.rootContainer>
<GridPanel identifier="rootContainer" visible="true">
<GridPanel.gridColumnDefinitions>
<GridColumnDefinition gridLengthValue=""/>
</GridPanel.gridColumnDefinitions>
<GridPanel.gridRowDefinitions>
<GridRowDefinition gridLengthValue=""/>
</GridPanel.gridRowDefinitions>
</GridPanel>
</form.rootContainer>
Most commonly used form properties:
preferredSize (required)
Most commonly used properties for child elements:
Most commonly used theme properties:
CSS element filter:
Inheritance diagram:
Associated ui methods:
SetGridColumnDenitions
GetGridColumnDenitions
SetGridRowDenitions
GetGridRowDefinitions
SetGridLength
GetGridLength
SetGridLengthType
GetGridLengthType
SetGridLengthValue
GetGridLengthValue
SetGridMaxLength
GetGridMaxLength
SetGridMinLength
GetGridMinLength
Influence and behavior:
To add a GridPanel to your form, you
Step 1. Choose a GridPanel from the form containers in Palette.
Step 2. Place it inside the Root container.
Initially, GridPanel has only one cell. You can add rows and columns by right-clicking an element within the numbering line and selecting the required option from the context menu.
Paste: pastes the column/row.
Insert Column After/Insert Row Below: inserts a new column or row before the selected one.
When you drag your widget into the Design Area without releasing the mouse button, the Form Builder displays the availability:
ToolbarButton, though, cannot be placed inside a GridPanel, as it is a child item for the Toolbar widget:
When reordering rows and columns in a GridPanel, you must remember these rules: