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

How to switch the filter editor in filter control as using DateTimePicker instead of TextBox for String?

2 Answers 66 Views
GridView
This is a migrated thread and some comments may be shown as answers.
King Chan
Top achievements
Rank 1
King Chan asked on 20 Apr 2012, 06:40 PM

Hello Telerik Staff,

As titled, for some reason I need to do filtering on a custom property which require DateTime value for filtering.

How can I tell GridViewDataColumn  's filter control to use DateTimePicker as input, so my TypeConveter can accept the DateTime value?

Note: I am not trying to create my custom field filter editor, I just want to use the default DateTime field filter editor. 

Thanks

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 21 Apr 2012, 08:34 AM
Hello,

 You can read through this help article for an example on how to set different Editor.

I hope that this is helpful.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
King Chan
Top achievements
Rank 1
answered on 23 Apr 2012, 02:11 PM
I see, so I still have to do it the same way as create custom filter editor control.
I thought there would be a property that I can simply switch to another default filter editor instead of creating subclass, overriding method, and writting converter.  Thanks.
Tags
GridView
Asked by
King Chan
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
King Chan
Top achievements
Rank 1
Share this question
or