Change displayed text for distinct filters

3 posts, 1 answers
  1. haagel
    haagel avatar
    52 posts
    Member since:
    Feb 2010

    Posted 16 Jun 2011 Link to this post

    Is it possible to change the text of the checkboxes that are shown for the distinct filters in the filter popup?

     

    I have a RadGridView where one of the column is of type nullable bool. I have a cell edit template for this column with a RadComboBox that has two options, 'Yes' and 'No', that of course corresponds to True and False. Also I have set ClearSelectionButtonVisibility="Visible" on the RadComboBox so that the user can set the value to null. This works fine.

     

    My problem is that in the filter popup of the column I have dinstict filters with the three available options true, false and null. This also works fine BUT the text of the checkboxes show 'True', 'False' and '' (empty string) respectively. I would like them to show the same as in my ComboBox, that is 'Yes' and 'No' instead.

     

    Is this possible to accomplish, and in that case how?

  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 16 Jun 2011 Link to this post

    Hi haagel,

    You can use an IValueConverter on the column DataMemberBinding. It will be respected by the distinct values.

    Best wishes,
    Ross
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. haagel
    haagel avatar
    52 posts
    Member since:
    Feb 2010

    Posted 16 Jun 2011 Link to this post

    Great!

    Thanks Ross! :)
Back to Top