Both grid and listbox support multiple columns and rows. They looks similar. Which one to use? also work combobox in listbox and grid.onopen() are use to run time create database record in listbox and combobox;
Grid
- Main use: table-like presentation of data.
- Each cell could be dramatically different from each other
- To implement selections, developers have to add a checkbox to each row. There is no easy way to implement single-selection (with radio button).
Listbox
- Main use: selectable data
- Selections are supported directly (by use of getSelectedItem and others)
- If textbox is contained in a cell, users cannot select its content.
(sumber : http://en.wikibooks.org/wiki/ZK/How-Tos/Concepts-and-Tricks#Tricks
Advertisement
