zorba-the-geek / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

ListGrid : After entered invalid value, cannot edit anymore #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
go to :

http://www.smartclient.com/smartgwt/showcase/#grid_editing_cell

On any cell of the column Population, enter a letter (g for example) and
press ENTER. A little icon appears to let you know you have entered a badly
invalid value. Now, try to change the value by putting a valid data (666
for example). The icon doesn't go away, you cannot edit nothing right now.
You're blocked.

Original issue reported on code.google.com by ricard.i...@gmail.com on 10 Feb 2009 at 9:49

GoogleCodeExporter commented 9 years ago

Original comment by sanjiv.j...@gmail.com on 10 Feb 2009 at 9:53

GoogleCodeExporter commented 9 years ago
Is there any way to remove the check on the value until this issue is fixed?

Original comment by ricard.i...@gmail.com on 10 Feb 2009 at 9:56

GoogleCodeExporter commented 9 years ago
This issue is not with SmartGWT, but with the sample code that has a custom 
renderer. 
This renderer needs to catch a parse exception in the event the user entered 
data is 
not a number.

        populationField.setCellFormatter(new CellFormatter() {
            public String format(Object value, ListGridRecord record, int rowNum, int 
colNum) {
                NumberFormat nf = NumberFormat.getFormat("0,000");
                return nf.format(((Number) value).longValue());
            }
        });

Original comment by sanjiv.j...@gmail.com on 10 Feb 2009 at 10:12

GoogleCodeExporter commented 9 years ago
The samples have been updated to handle alphanumeric data for numeric data 
types. 
Please confirm that this resolves your issue so that I can close this ticket.

Original comment by sanjiv.j...@gmail.com on 10 Feb 2009 at 11:23

GoogleCodeExporter commented 9 years ago
Works in my code, adding some test to be sure the data is what is supposed to 
be. The
showcase online still have the issue

Original comment by ricard.i...@gmail.com on 12 Feb 2009 at 12:56

GoogleCodeExporter commented 9 years ago
The showcase code in SVN has been updated, and it has not yet been pushed to the
online demo. Will do it later this week. Closing this issue.

Original comment by sanjiv.j...@gmail.com on 12 Feb 2009 at 1:15