Hello,
I'm trying to achieve the following functionality. I have a RadGrid that contains a GridDateTimeColumn, with filtering enabled. This field is populated from a SqlDataSource that selects a DATE column from an Oracle table. The column in the RadGrid shows the date along with the time, that is fine as the RadGrid is being used like a log. What I would like is that when the user selects a date to filter on, ONLY the date part of the filter is looked at, and all entries with that date are displayed in the RadGrid. What is happening, and I believe this is the expected behavior, is that the RadGrid is actually filtering for 11/3/2009 12:00 AM, instead of just 11/3/2009. Is it possible to achieve this desired filtering functionality?
I thought maybe something could be done during the RadGrid1_ItemCommand event, but I couldn't figure out how to say: Use 11/3/2009 for filter and compare to only the date part of the value in the column. I think it is possible to achieve the first part of what I said (modifying the e.CommandArgument text), but I don't know how to tell the RadGrid to only look at the first part of the GridDataItem text.
Thanks,
Casey
I'm trying to achieve the following functionality. I have a RadGrid that contains a GridDateTimeColumn, with filtering enabled. This field is populated from a SqlDataSource that selects a DATE column from an Oracle table. The column in the RadGrid shows the date along with the time, that is fine as the RadGrid is being used like a log. What I would like is that when the user selects a date to filter on, ONLY the date part of the filter is looked at, and all entries with that date are displayed in the RadGrid. What is happening, and I believe this is the expected behavior, is that the RadGrid is actually filtering for 11/3/2009 12:00 AM, instead of just 11/3/2009. Is it possible to achieve this desired filtering functionality?
I thought maybe something could be done during the RadGrid1_ItemCommand event, but I couldn't figure out how to say: Use 11/3/2009 for filter and compare to only the date part of the value in the column. I think it is possible to achieve the first part of what I said (modifying the e.CommandArgument text), but I don't know how to tell the RadGrid to only look at the first part of the GridDataItem text.
Thanks,
Casey