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

[Solved] Date Time Field Filtering is only on date

1 Answer 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Deep Ghosh
Top achievements
Rank 1
Deep Ghosh asked on 10 Dec 2010, 12:44 AM

On Grids we can have a Date/Time field.

 

1.  In case you want to do a filter, it brings up only a DATE-ONLY filter with calendar. This may be FINE.

2. In case a DATE is selected (As you cannot select time), match returns NOTHING as for MATCHING it compares both date and time.

3. It should match only BY DATE because it is letting the user enter ONLY THE DATE.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 10 Dec 2010, 08:33 AM
Hello Deep Ghosh,

You can easily change the behavior of the default date-time editor (RadDateTimePicker) by attaching to the FieldFilterEditorCreated event of the grid and if the column is the one that you want, cast the editor to RadDateTimePicker and configure its input mode -- you can tell it to edit dates, times, or both.

I hope this helps.

Best wishes,
Ross
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Deep Ghosh
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or