I'm using SMARTGWT 3.0 build 11 September 2012.
In my listgrid, i have a dateField.
I get listgrid's data by rpc call. In my server side, the format of dateField is dd/mm/yyyy. So in my client side i want to set format "toEuropeanShortDate". But nothing is working.
I tried :
1)
myGrid.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATE);
myGrid.setDateInputFormat("DMY");
--> Not working
2)
DataSourceDateField dateField = new DataSourceDateField("date", "Date");
dateField.setAttribute("inputFormat", "DMY");
dateField.setAttribute("displayFormat", "toEuropeanShortDate");
--> Not working
3)
DateUtil.setDateInputFormat("DMY");
DateUtil.setShortDateDisplayFormat(DateDisplayFormat.TOEUROPEANSHORTDATE);
--> Not working
i have always the same result, when i sort my datefield, the results are sorted as if they are in the format mm/dd/yyyy.
You can see the result of Ascending Sort in the picture attached.
Please help.
Thanks.
In my listgrid, i have a dateField.
I get listgrid's data by rpc call. In my server side, the format of dateField is dd/mm/yyyy. So in my client side i want to set format "toEuropeanShortDate". But nothing is working.
I tried :
1)
myGrid.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATE);
myGrid.setDateInputFormat("DMY");
--> Not working
2)
DataSourceDateField dateField = new DataSourceDateField("date", "Date");
dateField.setAttribute("inputFormat", "DMY");
dateField.setAttribute("displayFormat", "toEuropeanShortDate");
--> Not working
3)
DateUtil.setDateInputFormat("DMY");
DateUtil.setShortDateDisplayFormat(DateDisplayFormat.TOEUROPEANSHORTDATE);
--> Not working
i have always the same result, when i sort my datefield, the results are sorted as if they are in the format mm/dd/yyyy.
You can see the result of Ascending Sort in the picture attached.
Please help.
Thanks.
Comment