0

Need help to add an extra item/value in the combobox.

asked 2011-12-15 13:52:07 +0800

javaenthu gravatar image javaenthu
141 2

Hi all,
I have a Combobox in the UI and model is a list which is a list of states.
I want to add an extra item (just text ) say all states/ or any state.
How can i do that ?

Thanks in advance.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-12-15 15:03:16 +0800

zippy gravatar image zippy
504 2

updated 2011-12-15 15:04:35 +0800


Comboitem comboitemAll = new Comboitem();
combobitemAll.setLabel("ALL ITEMS");
comboitem.setValue(null);
comboboxMain.appendChild(comboitemAll);

...

if(comboboxMain.getSelectedItem.getValue == null)
     //ALL selected

or add a ALL state in the list

link publish delete flag offensive edit

answered 2011-12-16 13:53:13 +0800

javaenthu gravatar image javaenthu
141 2

Thanks it helps.

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: 2011-12-15 13:52:07 +0800

Seen: 112 times

Last updated: Dec 16 '11

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