databound listview display image from database next to list...

2 posts, 0 answers
  1. parios
    parios avatar
    1 posts
    Member since:
    Oct 2008

    Posted 30 Oct 2008 Link to this post

    I have a treeview that is as follows...


            Me.RadTreeView1.RelationBindings.Add(New RelationBinding("CategoryAlbum", Me.AlbumBindingSource))
            Me.RadTreeView1.RelationBindings.Add(New RelationBinding("AlbumImage", Me.ImageBindingSource))
            Me.RadTreeView1.RootRelationDisplayName = "Categories"
            Me.RadTreeView1.DataSource = Me.CategoryBindingSource

    Everything works fine... I have a 3 tables... category, album, images

    album and images both have fields for their image path and filename toghether.. ie c:\something\something\image1.jpg  in the images table and c:\something\something\image2.jpg in the album table....

    I want to take these fields and programatically display them next to the listview....

    how do i do this?
  2. Nick
    Nick avatar
    767 posts

    Posted 04 Nov 2008 Link to this post

    Hello parios,

    Thank you for contacting us.

    I am not sure that I completely understand your question. I think that you want to get the selected node and based on that to display an image on the form next to RadTreeView control. If so, please see the following code snippet of the Selected event:

    private void radTreeView1_Selected(object sender, EventArgs e)  

    Selected node text is printed as well as its parent's text and parent's parent's text.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top