In general validators which were set for boolean fields in a listgrid work but
they are not visible.
It seems to me that in such case the row editor is closed (the editing mode is
aborted) and the error icon and error message is visible only after reenter
editing mode again.
This occurs only for a field of boolean type, e.g.
field2.setType(ListGridFieldType.BOOLEAN);
CustomValidator customFieldValidator = new
CustomValidator() {
@Override
protected boolean condition(Object value)
{
return false;
}
};
customFieldValidator.setErrorMessage("some error message");
field2.setValidators(customFieldValidator);
In the attached application just click "add new record" button and type any
values. A validation error occurs, but the icon with error message is not
visible unitil reediting erroneous row again.
Original issue reported on code.google.com by WPieprzy...@gmail.com on 16 Dec 2010 at 10:31
Original issue reported on code.google.com by
WPieprzy...@gmail.com
on 16 Dec 2010 at 10:31Attachments: