How can I apply a ValueConverter to the selected item?

2 posts, 0 answers
  1. Kristian
    Kristian avatar
    9 posts
    Member since:
    Jun 2011

    Posted 07 Jul 2011 Link to this post


    Is it possible to apply a ValueConverter to the selected item in an editable ComboBox?

    I have successfully applied a ValueConverter to the items in the ComboBox itself (through creating a custom DataTemplate and assigning it to the ItemTemplate property of the ComboBox), but this ValueConverter is not applied to the currently selected item.

    I have tried to open the ComboBox in Expression Blend and creating a custom ControlTemplate for it (and assigning this template to the EditableTemplate property). However I could not find a way to apply the converter to the PART_EditableTextbox in the generated template.

  2. Pana
    Pana avatar
    748 posts

    Posted 13 Jul 2011 Link to this post


    You can not apply a DataTemplate to the content of the selected item in editable RadComboBox. Its content is presented in a TextBox and the content is a Text. That's both how the RadComboBox and the PresentationFramework's ComboBox work.

    I am sorry for the inconvenience.

    All the best,
    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!

Back to Top