When trying to use a datetime item in a listgrid the time part seem to get ignored. I tried this on the latest nightly (SmartClient Version: v8.2p_2012-07-09/PowerEdition Deployment (built 2012-07-09)) with FireFox 11.
When I only change the time part of the datetime no update is sent to the server. When I change the date part this is noticed.
I create my listgrid like this:
	This is my datasource:
	
							
						
					When I only change the time part of the datetime no update is sent to the server. When I change the date part this is noticed.
I create my listgrid like this:
Code:
	
	
public class DateTimeTest implements EntryPoint {
	
	public void onModuleLoad() {
		DataSource ds = DataSource.get("Customer");
		
		ListGrid listGrid = new ListGrid();
		listGrid.setAutoFetchData(true);
		
		ListGridField dateTimeField = new ListGridField("cstm_modifiedOn", "Modified On");
		dateTimeField.setType(ListGridFieldType.DATE);
		dateTimeField.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATETIME);
	
		dateTimeField.setEditorType(new DateTimeItem());
		
		listGrid.setFields(dateTimeField);
		listGrid.setDataSource(ds);
		listGrid.setAutoFetchData(true);
		listGrid.setHeight(500);
		listGrid.setWidth(500);
		listGrid.setCanEdit(true);
		listGrid.draw();
		
	}
}
Code:
	
	<DataSource serverType="sql" dbName="Mysql" tableName="Customer" ID="Customer" > <fields> <field primaryKey="true" type="sequence" name="cstm_pk" hidden="false"></field> <field type="text" length="45" name="cstm_name" ></field> <field type="datetime" name="cstm_modifiedOn" ></field> </fields> </DataSource>

Comment