SmartGWT version 3.0 July 4, 2012 build
I have a listgrid datetime field where only the time is modifiable.
I created a custom editor for this and set it via field.setEditorType.
All of it works perfectly when editing an existing record with startEditing(row, col, false).
The odd behavior is when a new row is added.
I can set the time with the picker and the custom textitem I use picks up the change.
However, when I commit the record (hit return), the value from the formitem is not pulled into the listgrid.
I know this is the case because I seeded starteditingnew with a default record containing a datetime. When I change the time and hit return, the original time is what gets sent to the server.
The only thing I can think of is the "new" editor isn't aware of the custom editor and isn't pulling the value from it.
Is there something I need to override when editing a new record?
I have a listgrid datetime field where only the time is modifiable.
I created a custom editor for this and set it via field.setEditorType.
All of it works perfectly when editing an existing record with startEditing(row, col, false).
The odd behavior is when a new row is added.
I can set the time with the picker and the custom textitem I use picks up the change.
However, when I commit the record (hit return), the value from the formitem is not pulled into the listgrid.
I know this is the case because I seeded starteditingnew with a default record containing a datetime. When I change the time and hit return, the original time is what gets sent to the server.
The only thing I can think of is the "new" editor isn't aware of the custom editor and isn't pulling the value from it.
Is there something I need to override when editing a new record?
Comment