-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
For initial question :
<combobox value="please select" />
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.
If you are assuming your browser supports HTML5, then extend Combobox and its widget to add new HTML5 field as "placeHolder"
Asked: 2014-05-09 16:11:40 +0800
Seen: 24 times
Last updated: May 10 '14
set the value don't allow the user to select again the option "please select"
pmfpereira ( 2014-05-09 16:49:38 +0800 )editah no thats normal, please select means you have to select a thing.
chillworld ( 2014-05-09 16:55:26 +0800 )editOk, 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