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

[Solved] FilterDescriptor not working for DateTimePicker in GridView

3 Answers 152 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.
Vimal
Top achievements
Rank 1
Vimal asked on 18 Jul 2011, 08:24 AM

Hi,

I have created a custom filter row in telerik gridview using following sample link
http://demos.telerik.com/silverlight/#GridView/CustomFilterRow

I have attached But it is not working for DateTimePicker.
The error screen shot & the custom gridview screenshot attached with the post.

Please open that link again or give us some sample for this error.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 19 Jul 2011, 03:28 PM
Hello Craig,

The information from the given screenshot is not enough to conclude what would be wrong. Have you implemented the FilterDescriptor property of the ColumnFilterCell:

public Telerik.Windows.Data.FilterDescriptor FilterDescriptor
        {
            get
            {
                return (Telerik.Windows.Data.FilterDescriptor)this.GetValue(FilterDescriptorProperty);
            }
            set
            {
                this.SetValue(FilterDescriptorProperty, value);
            }
        }
 
        public static readonly DependencyProperty FilterDescriptorProperty =
            DependencyProperty.Register("FilterDescriptor",
                typeof(Telerik.Windows.Data.FilterDescriptor), typeof(ColumnFilterCell),
                new System.Windows.PropertyMetadata(null, OnFilterDescriptorChanged)
            );

Another thing is are you using RadDataPicker or are you using RadDateTimePicker?
All the best,
Didie
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Tushar
Top achievements
Rank 1
answered on 03 Aug 2011, 09:23 AM
Hi,
I have used RadDateTimePicker in this case.

I have already implemented fiterdescriptor property using RadDateTimePicker.

Thanks.
0
Dimitrina
Telerik team
answered on 08 Aug 2011, 02:13 PM
Hello Tushar,

 I have tested the functionality of adding a FilterDescriptor using the official Q2 version of the controls. Unfortunately I was not able to reproduce such an error. 

Is it possible for you to send us a small, simple running project that shows the Exception. That way we could advise you properly.

All the best,
Didie
the Telerik team

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

Tags
GridView
Asked by
Vimal
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Tushar
Top achievements
Rank 1
Share this question
or