Image for :RadComboBoxItem

4 posts, 0 answers
  1. naresh
    naresh avatar
    23 posts
    Member since:
    Jul 2012

    Posted 24 Jun 2011 Link to this post

    My Requirement is I want add Image for RadComboBoxItem from static folder.
    The following was my code.

    <
    telerik:RadComboBox Name="Salutaion" Grid.Column="4" Width="75" Grid.Row="0" HorizontalAlignment="Left"
     IsEditable="True" IsReadOnly="True"  telerik:StyleManager.Theme="Office_Blue"
     ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Clear">
    <telerik:RadComboBoxItem Content="Male"/>
    <telerik:RadComboBoxItem Content="Female"/>
    </telerik:RadComboBox> Thanks and Regards Naresh Mesineni
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 24 Jun 2011 Link to this post

    Hello Naresh,

    You should create a DataTemplate and set it to the RadComboBox's ItemTemplate property. The approach is explained here.

    All the best,
    Yana
    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. naresh
    naresh avatar
    23 posts
    Member since:
    Jul 2012

    Posted 24 Jun 2011 Link to this post

    Hi Yana,
    but My requirement is shows the Images of Individual items... for example

    I have 2 dropdownItems {Male,Female} 
    I want show dropdownItems  as  {Male.Jpeg + Male} and {Female.Jpeg + Female}

    Those Images are in my Application folder.

    If its helpful if you provide sample application

    Thanks and Regards
    Naresh Mesineni

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 28 Jun 2011 Link to this post

    Hello Naresh,

    Please find attached a simple project demonstrating the approach. Hope it helps.

    Best wishes,
    Yana
    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
Back to Top