-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
I want to implement a simple list with some options to choose from.
The listbox control can be used. However, the listbox control does not support direct item selection with keyboard events.
This feature is well supported by the HTML <select> control.
Is there a way to do that with ZK Listbox?
Thank you
Dieter
Hi
I tested on listbox with mold="select", after user click drop drop button, user can use keyboard to select listietm
<listbox rows="1" mold="select"> <listitem label="Inbox"/> <listitem label="Received"/> <listitem label="Draft"/> </listbox>
Thank you very much
Your solution works perfectly for a list where one item can be selected.
We have a list where multiple items can be selected.
<listbox rows="5" mold="select" multiple="true"> ...
From a functional point of view it works. However, there is a minor usability issue: when I select an item with the mouse, the list scrolls somewhere else and the selected item is not visible in the visible list area.
Code snippet: click on 'Draft' in the list and the list scrolls to the last list items:
<listbox rows="5" mold="select" multiple="true"> <listitem label="Inbox"/> <listitem label="Received"/> <listitem label="Draft"/> <listitem label="A"/> <listitem label="B"/> <listitem label="C"/> <listitem label="D"/> <listitem label="E"/> <listitem label="F"/> <listitem label="G"/> <listitem label="H"/> <listitem label="I"/> <listitem label="J"/> <listitem label="K"/> </listbox>
Regards
Dieter
Asked: 2011-02-10 02:42:07 +0800
Seen: 578 times
Last updated: Mar 14 '11