When using radfilter in radwindow like the following example, This radwindow/radfilter is shared my all the gird filter through my site.
If I have GridDateTimeColumn on the grid and have TimePicker and DatePicker as PickerType for separate column, On the filter, how can I check the GridDateTimeColumn PickerType to show date only (no time icon) when PickerType is DatePicker and show time only ( no date icon) when PickerType is TimePicker ?
5 Answers, 1 is accepted
I have assembled a sample page showing the desired functionality implemented. The idea is to subscribe to RadFilter FieldEditorCreated event and set the editor PickerType value depending on the column PickerType as shown below.
RadFilterDateFieldEditor class (-> editor) does not contain a definition for "PickerType".
Also: what namespace is RadFilterDateFieldEditorPickerType contained in?
Thx in advance!
The RadFilterDateFieldEditorPickerType is contained in the Telerik.Web.UI namespace. I have tried the same code which works fine in the latest version(2013.2.611.40) of Telerik RadControls for ASP.NET AJAX whereas it didn't worked in the previous release like what you described. So update your RadControls to the latest version.
thx for your reply. It seems I don't have access to the latest build (subscription expired in June).
Is there a way to do this client-side? I though I saw an example for that somewhere, but I can't find it anymore.
Thx in advance!
In order to achieve your scenario without the latest version you could create a custom RadFilter editor and in the InitializeEditor place a RadDatePicker. The help article below describes how a RadFilter custom editor could be created.