0

Add "All Items" option to Combobox

asked 2014-05-09 16:11:40 +0800

pmfpereira gravatar image pmfpereira
3 1

updated 2014-05-09 17:17:18 +0800

Hi,

How can i add a "All items" option to combobox without have to create a combotitem only for this propose.

It´s possible to extend combobox to do that or exists any other alternative?

Thank's

delete flag offensive retag edit

Comments

set the value don't allow the user to select again the option "please select"

pmfpereira ( 2014-05-09 16:49:38 +0800 )edit

ah no thats normal, please select means you have to select a thing.

chillworld ( 2014-05-09 16:55:26 +0800 )edit

Ok, i reformulated the question, my mistake. instead of "Please Select" i can have the option "All items"

pmfpereira ( 2014-05-09 17:16:48 +0800 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2014-05-09 16:40:17 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

updated 2014-05-09 17:42:40 +0800

For initial question :

<combobox value="please select" />

Example here.

For updated question :

The best way is to create an custom ListModelList (just extends ListModelList) where you add in the constructor at first place an extra field.

Other possibility is add it with vm like I did here.
Take care, the post is about adding and removing the cell with null value.

Of course if you need it more then once, The custom ListmodelList is a better solution.

Greetz chill.

link publish delete flag offensive edit
0

answered 2014-05-10 06:36:26 +0800

Ganeshkhakare gravatar image Ganeshkhakare
150 4

If you are assuming your browser supports HTML5, then extend Combobox and its widget to add new HTML5 field as "placeHolder"

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-05-09 16:11:40 +0800

Seen: 24 times

Last updated: May 10 '14

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