0

First entry in a listbox

asked 2010-07-14 22:55:29 +0800

dorr gravatar image dorr
126 4

If I want the first entry in a listbox/dropbox to be spaces or 'Select an entry:', what is the best way to create that? The remainder of the list will be read from the database.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-07-14 22:58:55 +0800

dorr gravatar image dorr
126 4

I was able to get it, but is there a ZK attribute for this?

link publish delete flag offensive edit

answered 2010-07-15 02:50:05 +0800

Arsen gravatar image Arsen
384 5

You need to add another element to your ListModel with key=null and value="Select an entry".

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-07-14 22:55:29 +0800

Seen: 126 times

Last updated: Jul 15 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More