I want to used editableNumbercell like intger,decimal etc.. But there
is no such gwt widget present so I am using editable text cell and
using validation for numbers when user update value in cell.
Problem is that if validation fail then editabletext cell value
restored to old value.
intgerColumn.setFieldUpdater(new FieldUpdater<RecordInfo, String>() {
public void update(int index, RecordInfo object, String value) {
// Called when the user changes the value.
if(value.matches("(-)?(\\d){1,8}")){
object.setColumnInRecordEdited(true);
object.setValue(value);
RecordData.get().refreshDisplays();
}else{
Window.alert("Specify valid integer value for parameter");
// How to reset old value here? currently updated
value immediately set to cell
}
}
});
Any help or guidance in this matter would be appreciated.
--
Best Regards,
Vaibhav
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment