Name

grid — Presents a grid backed by a datasource.

Synopsis

LZX: grid
JavaScript: grid
Type: Class
Access: public
Topic: Components.Laszlo Components
Declared in: lps/components/lz/grid.lzx

Description

A grid is used to present data in a dataset. Although it can be configured using gridcolumn and gridtext, by default it will present an editable field either for each attribute in the first data node in the grid. If no attributes are found, a column will be presented for the each of the name() and text() fields of the nodes using gridtext columns.

              <canvas height="250">
              <dataset name="weatherdata" request="true"
              src="http://www.laszlosystems.com/cgi-pub/weather.cgi?zip=10022"/>

              <grid datapath="weatherdata:/weather" contentdatapath="forecast/day"/>
              </canvas>
            
A row-based data display and editing component.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basegrid » grid

Known Subclasses

Details

Properties (2)

layout
<attribute name="layout" value="placement : 'hcontent';axis:'x' ; spacing:-1" />
public var layout;
The layout of attribute of the grid is set up to control the way that the header columns are situated. Changing this property changes the header column layout.
showhscroll
<attribute name="showhscroll" value="true" />
public var showhscroll;
If false, the grid will never show a horizontal scrollbar, even if the rows are wider than the grid.

LZX Synopsis

<class name="grid" extends=" basegrid ">
  <attribute name=" layout " value="placement : 'hcontent';axis:'x' ; spacing:-1" />
  <attribute name=" showhscroll " value="true" />
</class>

JavaScript Synopsis

public grid extends  basegrid  {
  public var layout ;
  public var showhscroll ;
}