This is a migrated thread and some comments may be shown as answers.

Setting DefaultImageSrc in code broken in Q1.2010 Release

1 Answer 29 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Michael Wolfe
Top achievements
Rank 1
Michael Wolfe asked on 18 Mar 2010, 01:56 AM
Using the Q3.2009 release, I built a treeview dynamically in code. I create treeview items and set them to a shared BitmapImage depending on the type of data object that the treeviewitem represents. Everything worked fine.

When I upgraded to the Q1.2010 release, the treeview no longer displays the images. They display correctly in my OutlookBar and RadContextMenus, but not the treeview. I create them with code like the following:

 

var newItem = new RadTreeViewItem();

 

newItem.Header = item.Group.Identity.Description;

newItem.DefaultImageSrc = item.Group.GroupIcon.SmallIcon;

where SmallIcon is of Type BitmapImage containing a 16 x 16 image from a png file.


I didn't see anything mentioned in the treeview changes list for Q1.2010 but something is different.

Any ideas what I need to change to get the images to show in the treeview?

1 Answer, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 22 Mar 2010, 11:43 AM
Hi Michael Wolfe,

We are aware of this issue and deeply apologize for the caused inconvenience .
We will do our best to fix this issue for the this weeks internal build.

Kind regards,
Bobi
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.
Tags
TreeView
Asked by
Michael Wolfe
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Share this question
or