When I select an Item in the combobox it isn't actually selecting it. My expectation is that when I select an item that it would be visible in the combobox once the list closes. However, after selecting an item nothing is visibly "selected".
Here is the code
Here is the code
Code:
final AlertItemDataSource alertItems = AlertItemDataSource.getInstance();
actionComboBox.setType("comboBox");
actionComboBox.setOptionDataSource(alertItems);
actionComboBox.setAutoFetchData(true);
actionComboBox.setShowTitle(false);
actionComboBox.setWidth("*");
actionComboBox.setStartRow(true);
actionComboBox.setColSpan(2);
ListGrid alertItem = new ListGrid();
alertItem.setCellHeight(20);
alertItem.setCanHover(true);
alertItem.setShowHover(true);
alertItem.setCellFormatter(new CellFormatter() {
@Override
public String format(Object value, ListGridRecord record, int rowNum, int colNum)
{return record.getAttribute("alert");}
});
alertItem.setHoverCustomizer(new HoverCustomizer() {
@Override
public String hoverHTML(Object value, ListGridRecord record, int rowNum, int colNum)
{return record.getAttribute("description") != null ? record.getAttribute("description") : "[no description]";}
});
actionComboBox.setPickListProperties(alertItem);