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

Problem with RadTreeViewItem

3 Answers 60 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Lily Romero
Top achievements
Rank 1
Lily Romero asked on 01 Oct 2009, 04:57 PM

Hi, i have a problem with RadTreeViewItem, I are icons of each level of the nodes, which could be happening?, the format of the images are in format .png, Please, if someone speak Spanish explain me please.

Thanks

it s the code

<Border BorderBrush="#FF000000" Grid.Column="0" CornerRadius="5" BorderThickness="5" Background="#FFFFFFFF">  
 
            <telerikNavigation:RadTreeView x:Name="RadTreeView1" HorizontalAlignment="Left"  
                    Margin="10" VerticalAlignment="Top"  
                    IsLineEnabled="True" SelectionMode="Multiple" IsEditable="True"  
                    IsDragDropEnabled="True">  
                <telerikNavigation:RadTreeViewItem Header="Carpeta Personal"  
                        DefaultImageSrc="imag/mail.jpg"  
                        IsExpanded="True"

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 02 Oct 2009, 06:56 AM
Hi Lily Romero,

If I understand you correctly the images you try to show in the treeview are not displayed?

This can happen if the path to the images is not correct.

Please check this blog post:
http://blogs.telerik.com/valentinstoychev/posts/08-10-02/loading_images_in_silverlight2_applications.aspx

Let us know if you still have problems. You can also try to download the latest version of our controls.

Regards,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Lily Romero
Top achievements
Rank 1
answered on 02 Oct 2009, 11:36 PM

Hi Mr. Valentin.Stoychev, i check my directory but dosen t run, try whit various formats but nothing, 

I have the screens  but, i don t as upload. =(

0
Miroslav
Telerik team
answered on 05 Oct 2009, 12:29 PM
Hi Lily Romero,

I created a simple example that shows how you display images in the TreeView.

Please make sure that in the properties of your images you set their Build Action to Content and Copy to output directory to Copy if newer.

Does this work for you?

Kind regards,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Lily Romero
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Lily Romero
Top achievements
Rank 1
Miroslav
Telerik team
Share this question
or