Layout property: Grid class
Description
Use this property to set or return an Integer representing the grid layout type. The value can be one of the following constants:
| Numeric Value | Constant Value | Description |
|---|---|---|
|
0 |
%OriginalGrid |
Not used in fluid applications. |
|
1 |
%ScrollableGrid |
Not used in fluid applications. |
|
2 |
%ListGrid |
Used on fluid pages to contain an unordered list grid. |
|
3 |
%DataGrid |
Used on fluid pages to contain a data grid. |
|
4 |
%DivGrid |
Used on fluid pages to contain a div grid. |
|
5 |
%OriginalFlexGrid |
Used on fluid pages to contain a flex grid. |
|
6 |
%ClassicListGrid |
Not used in fluid applications. |
|
7 |
%ClassicOrderedListGrid |
Not used in fluid applications. |
|
8 |
%ClassicPresenationGrid |
Not used in fluid applications. |
|
9 |
%OrderedListGrid |
Used on fluid pages to contain an ordered list grid. |
|
10 |
%MenuGrid |
Used on fluid pages as a container for a pop-up menu. See Fluid User Interface Developer’s Guide: Creating Fluid Pop-up Menus. |
|
11 |
%TabSetGrid |
Used on fluid pages as a container for sectional tabs. See Fluid User Interface Developer’s Guide: Creating Sectional Tabs on a Page. |
This property is read/write.
Important:
Use this property within fluid applications only.
Example
Local Grid &LGrid = GetGrid(Page.QE_NUI_GRIDLAYOUT, "PCODEGRID");
Local string &Devicetype;
&Devicetype = %Request.BrowserDeviceType;
Evaluate &Devicetype
When "pc"
If %Request.BrowserTypeClass = "chrome" Then
&LGrid.Layout = %DataGrid;
Else
&LGrid.Layout = %DivGrid;
End-If;
When "phone"
&LGrid.Layout = %OriginalFlexGrid;
When "tablet"
&LGrid.Layout = %ListGrid;
End-Evaluate;