Hi,
I have got a datasource with DataSourceDateField. The grid is bound to that datasource having filter visible.
When I pick a date then local filtering works fine.
After inserting this code:
	I have date values in the grid and its filter formatted to the local date format,
but the same filtering by picking the same date does not work - no records found.
svn 557
MichalG
					I have got a datasource with DataSourceDateField. The grid is bound to that datasource having filter visible.
When I pick a date then local filtering works fine.
After inserting this code:
Code:
	
	        DateUtil.setShortDateDisplayFormatter(new DateDisplayFormatter() {
            public String format(Date date) {
                if(date == null) return null;
//                DateTimeFormat dateFormatter = DateTimeFormat.getFormat("yyyy-MM-dd");
                DateTimeFormat dateFormatter = DateTimeFormat.getMediumDateFormat();
                String format = dateFormatter.format(date);
                return format;
            }
        });
but the same filtering by picking the same date does not work - no records found.
svn 557
MichalG

Comment