Kvel
30 Aug 2010, 10:48 PM
Hi,
Am using gxt grid to display dates, and these are represented in string format
13/Dec/2006
05/Aug/2005
11/Jan/2007
I would normally expect the above, when sorted to be
05/Aug/2005
13/Dec/2006
11/Jan/2007
but the actual sorted order by the grid is( correct w.r.t to Strings but not Dates)
05/Aug/2005
11/Jan/2007
13/Dec/2006
So how do I override the custom sorting on this date column to recognize the column values as Dates and not as Strings. Any ideas would help.
Am using gxt grid to display dates, and these are represented in string format
13/Dec/2006
05/Aug/2005
11/Jan/2007
I would normally expect the above, when sorted to be
05/Aug/2005
13/Dec/2006
11/Jan/2007
but the actual sorted order by the grid is( correct w.r.t to Strings but not Dates)
05/Aug/2005
11/Jan/2007
13/Dec/2006
So how do I override the custom sorting on this date column to recognize the column values as Dates and not as Strings. Any ideas would help.