Custom DataFilter

4 posts, 0 answers
  1. Davood
    Davood avatar
    21 posts
    Member since:
    Dec 2010

    Posted 09 Dec 2010 Link to this post

    Hello
    i can't resolve This error . registerTime Property Is String
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Dec 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Davood
    Davood avatar
    21 posts
    Member since:
    Dec 2010

    Posted 09 Dec 2010 Link to this post

    i need custom data filter with radmasktext for string property with mask="##:##" but this error shown
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 09 Dec 2010 Link to this post

    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
Back to Top