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

Custom DataFilter

3 Answers 107 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Davood
Top achievements
Rank 1
Davood asked on 09 Dec 2010, 06:46 AM
Hello
i can't resolve This error . registerTime Property Is String

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Dec 2010, 08:28 AM
Hello,

 You are trying to cast StringFilterEditor to RadMaskedTextBox.

All the best,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Davood
Top achievements
Rank 1
answered on 09 Dec 2010, 03:20 PM
i need custom data filter with radmasktext for string property with mask="##:##" but this error shown
0
Rossen Hristov
Telerik team
answered on 09 Dec 2010, 03:56 PM
Hi Davood,

The filter editor for the "RegisterTime" column is a StringFilterEditor and not a RadMaskedTextBoxEditor. This is caused by the fact that you column's data type is string and is not numeric.

For string properties you get a StringFilterEditor. For numeric properties you get a RadNumericUpDown. Form DateTime's you get RadDateTimePicker. For enums you get RadComboBox. All of this is demonstrated in the Standard Editors Example.

In case you want to change the default editors, you can do this by following the Custom Filter Editors example.

I hope this helps.

Kind regards,
Ross
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
DataFilter
Asked by
Davood
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Davood
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or