Is it possible to show more that one image in the radtreeview item

2 posts, 0 answers
  1. Arshad
    Arshad avatar
    10 posts
    Member since:
    Apr 2016

    Posted 14 Jun 2016 Link to this post

    I am adding image to the radtreeviewitem from resources programatically using the below code.


    and the image is displaying successfully. Now i need to add another  image which needs to be displayed next to the first image in the radtreeviewitem.

    Is it possible..???If so how to achieve it.?


    Like the below attached image i need my treeviewitem to display a folder icon and a red square icon in a single treeview item.[

  2. Martin Ivanov
    Martin Ivanov avatar
    1475 posts

    Posted 16 Jun 2016 Link to this post

    Hi Arshad,

    RadTreeView has a support only for a single image that can be displayed in the header of the RadTreeViewItem. However, I can suggest you couple custom approaches for achieving your requirement.
    • Merge both images into a single one and display it through the DefaultImageSrc property of RadTreeViewItem.
    • Or define the additional image (or both images) in the ItemTemplate of the treeview.
      <HierarchicalDataTemplate x:Key="treeViewItemTemplate">
          <StackPanel Orientation="Horizontal">
              <Image Source="Image1URI" />
              <Image Source="Image2URI" />
              <TextBlock Text="Item Header" />

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top