ComboBox itemCaptionProperty

Hi,

is it possible to have multiple properties as itemCaptionPropertyId in the ComboBox?

For example:


ComboBox c = new ComboBox();
c.setContainerDataSource(container);

c.setItemCaptionPropertyId(“name”,“description”);

Thanks

No, that’s not possible. I think this would be quite a useless feature, since you would also have to tell the ComboBox how it should combine the data of the two properties. This would unnecessarily bloat the API.

You could instead add a new property to the container that does combine the two properties in the way you want and use this new caption generator property as the caption property for the combo box.