Hi Isomorphic,
please see this ListGrid screenshot (latest 5.1p):
It seems that you replace line feeds in the data with <br>, which is what is needed here.
You don't do the same in hovers, for either just myListGridField.setShowHover(true) or also myListGridField.setHoverCustomizer().
Is this on purpose?
Also, I have a small issue with myListGridField.setHoverCustomizer():
I want to show a popup with some extra information if the field is not empty:
Just comparing to null (which is the value in the DB) does not work. Is the on purpose, and if so, can I rely on it?
Thank you & Best regards
Blama
please see this ListGrid screenshot (latest 5.1p):
It seems that you replace line feeds in the data with <br>, which is what is needed here.
You don't do the same in hovers, for either just myListGridField.setShowHover(true) or also myListGridField.setHoverCustomizer().
Is this on purpose?
Also, I have a small issue with myListGridField.setHoverCustomizer():
I want to show a popup with some extra information if the field is not empty:
Code:
setHoverCustomizer(new HoverCustomizer() { @Override public String hoverHTML(Object value, ListGridRecord record, int rowNum, int colNum) { if (value == null [B]|| " ".equals(value)[/B]) return null; String retVal = "<b>" + value.toString() + "</b><br/><br/>"; String description = record.getAttribute("DESCRIPTION"); if (description == null) return retVal + i18n.noDescriptionGiven(); else return retVal + description; } });
Thank you & Best regards
Blama
Comment