<gridtext>
Declares a text column in a grid.

JavaScript: lz.gridtext

The gridtext class can be used to present editable column data. This is the default class used by grid when it infers columns.

<canvas height="250">
              <dataset name="contacts" request="true" src="http:resources/contactsdata.xml"/>

              <grid datapath="contacts:/resultset">
              <gridtext editable="false" datapath="@id" datatype="number">ID
              </gridtext>
              <gridtext datapath="@displayname" width="200"> Name
              </gridtext>
              </grid>
              </canvas>

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
datapath expression any   read/write
  The datapath attribute for a grid text is used for the text that is displayed in the rows.
editable boolean boolean true read/write
  If set to false, the field will not be editable.
selectable boolean boolean false read/write
  Whether one is able to select the text. (Only applies if the grid isn't editable, because when it's editable, the text is automatically selectable.)
textalign string String left read/write
  Type of content's alignment. Possible values are: left, center, right

Attributes inherited from <gridcolumn>

resizable, resizemargin, showheader, sortable

Methods

Methods inherited from <basegridcolumn>

doSort

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy