This question is locked. New answers and comments are not allowed.
I have a column that is a System.DateTime value. I am displaying the entire date and time. All of the examples on the demo site only display the Date.
If the DateTime column has a sort applied to it, life is good. However if a filter is applied to it, things get complicated. The datepicker only allows the user to select a date. After the user picks a date the filter uses a System.DateTime that has the default value of midnight populated for the time value. This creates some unexpected behavior.
The grid can contain 3 items with a DateTime value of 10/05/2010 and various times throughout the day.
The user can select a filter of "is equal to" and then use the datepicker to select a date of 10/05/2010.
The user would expect the 3 items with a date equal to the date they selected to be returned.
In fact no dates are returned. The grid creates a filter that looks for records with a System.DateTime equal to 10/05/2010 12:00:00 AM. No records match that filter so no records are returned.
This seems like a bug to me. I am open to suggestions on how to fix this issue. Thanks so much.
Barnabas
If the DateTime column has a sort applied to it, life is good. However if a filter is applied to it, things get complicated. The datepicker only allows the user to select a date. After the user picks a date the filter uses a System.DateTime that has the default value of midnight populated for the time value. This creates some unexpected behavior.
The grid can contain 3 items with a DateTime value of 10/05/2010 and various times throughout the day.
The user can select a filter of "is equal to" and then use the datepicker to select a date of 10/05/2010.
The user would expect the 3 items with a date equal to the date they selected to be returned.
In fact no dates are returned. The grid creates a filter that looks for records with a System.DateTime equal to 10/05/2010 12:00:00 AM. No records match that filter so no records are returned.
This seems like a bug to me. I am open to suggestions on how to fix this issue. Thanks so much.
Barnabas