Thanks for reply. How to cancel key events for spaces when in edit mode? On Mar 27, 8:52 pm, Thomas Broyer <t.bro...@gmail.com> wrote: > Answered on > SO:http://stackoverflow.com/questions/9891671/gwt-celltable-how-to-avoid... > > > > > > > > On Tuesday, March 27, 2012 3:55:38 PM UTC+2, vaibhav gwt wrote: > > > 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 > > > <http://about.me/vaibhavbhalke>
-- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.