Hi,
I am using GWT2.3.
How to avoid entering particular value in editTextCell- column- Celltable?
Is there any event in editTextCell?
Validation while entering values in cells of celltable
In case of
String :Dont enter spaces in cell
Integer : Dont use characters
+ avoiding spaces in cell i.e if cell is type of string then user can't use spaces
although user presses "space bar" button multiple times then that spaces should not be enter in cell a
How to achieve this ?
final EditTextCell editTextCell = new EditTextCell();
final Column<RecordVO, String> stringColumn = new Column<RecordVO, String>(
editTextCell) {
@Override
public String getValue(RecordVO object) {
}
@Override
public void render(Context context, RecordVO object,SafeHtmlBuilder sb) {
// Any code?
}
column.setFieldUpdater(new FieldUpdater<RecordVO, String>() {
public void update(int index, RecordVO object, String value) {
// This will return updated value
}
Any help or guidance in this matter would be appreciated.
--
Best Regards,
V