ZKoss – Grid versus Listbox

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
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.