Hi,
I dynamically created ListGrid in smart GWT. All the ListGridFields are accepting any character but I want to allow only numbers in some ListGridField.
I tried :-
1) ListGridField gridField = new ListGridField("columnName", "columnTitle");
gridField.setType(ListGridFieldType.INTEGER);
2 ) ListGridField gridField = new ListGridField("columnName", "columnTitle");
IntegerRangeValidator integerRangeValidator = new IntegerRangeValidator();
integerRangeValidator.setMin(0);
integerRangeValidator.setMax(99);
gridField.setValidators(integerRangeValidator);
But, still it allow any character.
Please reply if you know how could I fixed this ?
I dynamically created ListGrid in smart GWT. All the ListGridFields are accepting any character but I want to allow only numbers in some ListGridField.
I tried :-
1) ListGridField gridField = new ListGridField("columnName", "columnTitle");
gridField.setType(ListGridFieldType.INTEGER);
2 ) ListGridField gridField = new ListGridField("columnName", "columnTitle");
IntegerRangeValidator integerRangeValidator = new IntegerRangeValidator();
integerRangeValidator.setMin(0);
integerRangeValidator.setMax(99);
gridField.setValidators(integerRangeValidator);
But, still it allow any character.
Please reply if you know how could I fixed this ?
Comment