Re: Date formatting and sorting?

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Date formatting and sorting?

by Christian Cypert-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Got it working, but with a slight change to below. Instead of using  
dateFormat I used sortType:'asDate'. After adding this little bit the  
dates showed up and started sorting correctly. In my column definition  
I call a dateRenderer to format the displayed date.

On Apr 28, 2009, at 11:00 AM, active4d-dev-request@...  
wrote:

> fields: [
> 'id',
> { name: 'date', type: 'date', dateFormat: 'Y-m-d' },
> 'title',
> 'contact',
> { name: 'notes_length', type: 'int' },
> 'pa_email',
> 'pa_name'
> ],


Christian Cypert
ccypert@...

It is a rare mind indeed that can render the hitherto non-existent  
blindingly obvious. The cry 'I could have thought of that' is a very  
popular and misleading one, for the fact is that they didn't, and a  
very significant and revealing fact it is too.
- Douglas Adams





_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/