Hi Team,
I have used Hover in my project. As part of tech stack upgrade we have upgraded our project into SmartGWT-6 version. After upgrading, Hover customization is not working. I have even tried with sample DEMO projects from showcase, it is also not working. Is there any changes?
Source Code:
I have used Hover in my project. As part of tech stack upgrade we have upgraded our project into SmartGWT-6 version. After upgrading, Hover customization is not working. I have even tried with sample DEMO projects from showcase, it is also not working. Is there any changes?
Source Code:
ComboBoxItem filteredCombo = new ComboBoxItem();
filteredCombo.setName("filteredCombo");
filteredCombo.setTitle("Select Item");
filteredCombo.setAddUnknownValues(false);
filteredCombo.setOptionDataSource(CountrySampleData.getInstance());
filteredCombo.setDisplayField("continent");
filteredCombo.setValueField("Continent");
filteredCombo.setPickListWidth(300);
ListGridField continentField = new ListGridField("continent", "Continent");
continentField.setShowHover(true);
//continentField.setShowHoverComponents(true);
//Below is the Source code which is causing issue, if I didn't use below setHoverCustomizer(), hower is showing. The same code was working fine in SmartGWT-3 version
continentField.setHoverCustomizer(new HoverCustomizer() {
public String hoverHTML(Object value, ListGridRecord record, int rowNum, int colNum) {
return record.getAttributeAsString("IN");
}
});
filteredCombo.setName("filteredCombo");
filteredCombo.setTitle("Select Item");
filteredCombo.setAddUnknownValues(false);
filteredCombo.setOptionDataSource(CountrySampleData.getInstance());
filteredCombo.setDisplayField("continent");
filteredCombo.setValueField("Continent");
filteredCombo.setPickListWidth(300);
ListGridField continentField = new ListGridField("continent", "Continent");
continentField.setShowHover(true);
//continentField.setShowHoverComponents(true);
//Below is the Source code which is causing issue, if I didn't use below setHoverCustomizer(), hower is showing. The same code was working fine in SmartGWT-3 version
continentField.setHoverCustomizer(new HoverCustomizer() {
public String hoverHTML(Object value, ListGridRecord record, int rowNum, int colNum) {
return record.getAttributeAsString("IN");
}
});
Comment