Declined
Last Updated: 28 May 2024 08:17 by ADMIN
Johannes
Created on: 15 May 2024 11:14
Category: TreeView
Type: Feature Request
0
Allow TreeView item's image for selected item to be derived from an item's default image via drawing by shapes.

We use a RadTreeView with many different item types that set a DefaultImageSrc based on a combination of item type and state
(from each item's view model).

For the currently selected TreeView item we would like to modify the item's image with a coloured border.
So it would be a very useful feature, if the TreeView item's SelectedImage could be derived from the DefaultImageSrc
via XAML Shapes (Rectangle, Line, etc.).
(Shapes can e.g. already be used to draw TreeView's Expander-Button for expanded/collapsed state, which is very useful).

Currently the only approach is to copy any item-type's image in the file system and modify it for selected state.
(Thus doubling the number of item image files.)
Given the number of images for different item types and states that we already have, this is not very practical.

Examples for DefaultImageSrc (left) and SelectedImageSrc (right):

  •  -> 
  •  -> 

Is it possible to extend RadTreeView, so that the SelectedImageSrc can be based on the given DefaultImageSrc, but with a modification provided via XAML?


3 comments
ADMIN
Martin Ivanov
Posted on: 28 May 2024 08:17

Hello Rainer,

Thank you for letting me know. In that case I will decline the feature request for now. If you find extra information on the exact requirement, don't hesitate to post it here so we can review the request again.

Regards,
Martin Ivanov
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Rainer
Posted on: 28 May 2024 08:03

Hello Martin,

thank you for your suggesstions.

We'll have a closer look to the ItemTemplate approach.

Unfortunately, Johannes will be absent for an indefinite period and we currently have no available resources to work on this item.

 

Regards,

Rainer Bosch

ADMIN
Martin Ivanov
Posted on: 21 May 2024 13:10

Hello Johannes,

Can you elaborate a bit more on this request by telling me what do you mean by saying that SelectedImageSrc should be based on the DefaultImageSrc? Do you mean that there should be two layers of images? Would a feature like the IconTemplate of RadNavigationView would help you achieve the desired result? This should allow you to place and customize any content in the icon area.

Also, you can mimic a behavior similar to the IconTemplate by adding your own image-like visual in the ItemTemplate of the RadTreeView control, instead of using the built-in icon support. Can you consider this idea too and let me know if this would work for you?

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.