I have a gridPanel with one of the RecordDef as DateFieldDef .I tried
to format the output in the format 09/01/2009
using the following code, but its not working.The column becomes blank
with no entries populated when i tried to do the formatting. Please
help.
ColumnConfig normalizedDateColumn =
new ColumnConfig("NORMALIZEDDATE",
"SORTFIELD_DATE", 150, true,new Renderer()
{
public String render(Object value, CellMetadata
cellMetadata,
Record record, int rowIndex,
int colNum, Store store) {
Date date=new Date((String)value);
DateTimeFormat fmt =
DateTimeFormat.getFormat("mm/dd/yyyy");
String formatted=fmt.format(date);
return(formatted);
}
}
);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---