The gridcolumn class can be used to declare a
column in a grid with the standard column
header look without specifying exactly what goes inside the
column. This can be useful for embedding other components within a
grid.
<canvas height="160">
<dataset name="contacts" request="true" src="http://www.openlaszlo.org/lps/demos/contacts/contactsdata.xml"/>
<grid datapath="contacts:/resultset">
<gridcolumn showheader="false" width="50">
<view bgcolor="#CCCCCC" width="${parent.width}" placement="header" height="${parent.immediateparent.height-1}"/>
<text datapath="position()"/>
</gridcolumn>
<gridcolumn width="200"> Name
<text datapath="@displayname"/>
</gridcolumn>
<gridcolumn sortable="false"> Home
<checkbox value="$path{'@home_default'}" xoffset="${10-parent.width/2}">
<handler name="onvalue">
this.datapath.updateData();
</handler>
</checkbox>
</gridcolumn>
</grid>
</canvas>
Copyright © 2002-2007 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.