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

Filtering the DateTime column by both date and time

1 Answer 162 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 12 Jul 2017, 11:57 PM

Hello.

 

I have a column in my RadGridView that's bound to a DateTime field of my data source. It's showing both date and time (i.e. 7/7/2017 2:22 PM). When I'm clicking the Filter button (next to the column name) I'm getting the filtering popup with the distinct values and two Date pickers. Is there a way to make them DateTime pickers instead?

 

I tried to use AutoGenerateColumns="True" so that my customizations don't interfere but I'm still getting Date pickers.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 17 Jul 2017, 12:23 PM
Hello Alex,

To achieve the desired result you can define a custom filtering control for your column as demonstrated in this article or create your own custom column and override the CreateFieldFilterEditor method to replace the default editors with your own.

I hope you find these suggestions helpful.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or