To set number of visible Items in GWT ListBox we have ListBox.setVisibleItemCount() API but I didn't find any way to achieve the same in SmartGWT's SelectItem. My requirement is to display an image and text in SelectItem list and like in GWT we should be able to display multiple items at a time.
There is an option to set mutiselect using selectItem.setMultiple(true); and selectItem.setMultipleAppearance(MultipleAppearance.GRID); but if we set multiselect in this way, image is not displaying in the list box only text is coming and i am seeing error piling up in devmode console when i click on the SelectItem.
I am not getting whether displaying multiple items is possible in SmartGWT's SelectItem (with image) or not, or Am i missing something here.
My requirement is - I need a Single selection ListBox where i can add image, text and color.
Is this achievable using SelectItem of SmartGWT or is there any other widget i can use.
Cam i set Height to 'SelectItem' when setMultiple is false. At least this should solve my problem.
There is an option to set mutiselect using selectItem.setMultiple(true); and selectItem.setMultipleAppearance(MultipleAppearance.GRID); but if we set multiselect in this way, image is not displaying in the list box only text is coming and i am seeing error piling up in devmode console when i click on the SelectItem.
I am not getting whether displaying multiple items is possible in SmartGWT's SelectItem (with image) or not, or Am i missing something here.
My requirement is - I need a Single selection ListBox where i can add image, text and color.
Is this achievable using SelectItem of SmartGWT or is there any other widget i can use.
Cam i set Height to 'SelectItem' when setMultiple is false. At least this should solve my problem.
Comment