views:

933

answers:

2

I am using ASP.NET MVC with JQGrid.

The issue now is, how can I sort the date column in the JQGrid? Any ideas?

A: 

I do the sort on the DB server. I've elaborated on how I do this in a series of blog posts, and you can download a demo solution (which doesn't use a DB, but can nevertheless sort on a date on the server side) there.

Craig Stuntz
+2  A: 

On the client side, you can use the sorttype and datefmt options to instruct jqGrid to sort these columns.

For example:

sorttype: "date", datefmt: "M d, Y at h:i"
Justin Ethier