This is a migrated thread and some comments may be shown as answers.

[Solved] Problem filtering GridDateTimeColumn

1 Answer 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ferdinand
Top achievements
Rank 1
Ferdinand asked on 01 Dec 2009, 01:39 PM
Hello,
I have a problem filtering a GridDateTimeColumn. I use an ObjectDataSource to fill my grid with data. Moreover I have filtering sorting and paging activated. One of the columns is a GridDateTImeColumn defined like this:
<telerik:GridDateTimeColumn DataField="Date" HeaderText="Datum" 
                    SortExpression="Date" UniqueName="Date"
</telerik:GridDateTimeColumn> 

Showing the data, sorting and paging works fine. I can see the dates and the appropriate times in the column.

But if I try to filter the column for a date (which definitly exists in the column) with the EqualTo filter it returns no rows as result. Is it possible that the filter tries to get all occurences of the specified date at 00:00:00?

Could you please help me clarifiing this issue?

Best regards
Ferdinand

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 01 Dec 2009, 05:56 PM
Hi Ferdinand,

Please review the following forum thread which elaborates on this subject for more details about how to achieve your goal:
http://www.telerik.com/community/forums/aspnet-ajax/grid/griddatetimecolumn-equal-filter-problem.aspx

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Ferdinand
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or