Using 3.0
and
ListGridField myField= new ListGridField("myField");
myField.setType(ListGridFieldType.IMAGE);
myField.setValueIcons(new HashMap<String, String>(){{
put("false", "img1.png");
put("true", "img2.png");
}});
...
new ListGrid().setFields(myField);
...
where record is myField false or true
Will display the correct icons, but additionaly a second icon with src false.
Doing myField.put("anotherValue", "img3.png");
Will display 2 icons again.
Can you tell me the reason, please?
Thanks
and
ListGridField myField= new ListGridField("myField");
myField.setType(ListGridFieldType.IMAGE);
myField.setValueIcons(new HashMap<String, String>(){{
put("false", "img1.png");
put("true", "img2.png");
}});
...
new ListGrid().setFields(myField);
...
where record is myField false or true
Will display the correct icons, but additionaly a second icon with src false.
Doing myField.put("anotherValue", "img3.png");
Will display 2 icons again.
Can you tell me the reason, please?
Thanks
Comment