Processing...
Description & Source Code

This example shows how the grid component is created on demand only as the onOpen event is triggered.

create_on_demand.zul
<zk>
	<groupbox id="root" mold="3d" open="false" width="420px">
		<caption image="/widgets/event/create_on_demand/img/FirstWindow-24x24.png" label="Click me to open the groupbox"></caption>
		<grid fulfill="root.onOpen">
			<columns>
				<column label="Feature" hflex="1" />
				<column label="Benefits" hflex="3" />
			</columns>
			<rows>
				<row>
					<label value="Create On Demand" />
					<label value="Components are created only when they are needed,
				saving both memory and rendering time." />
				</row>
			</rows>
		</grid>

	</groupbox>
	The grid will be created when the open the content of groupbox
</zk>