Displaying image in a node of treeview

2 posts, 1 answers
  1. Aneesh
    Aneesh avatar
    9 posts
    Member since:
    May 2012

    Posted 23 May 2012 Link to this post

    I have a rad treeview. i want an image to be shown with every node. How can I do that. please help me.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 May 2012 Link to this post

    Hi Aneesh,

    Try the following code snippet to add image in each node of a RadTreeView.

    C#:
    foreach (RadTreeNode node in RadTreeView1.GetAllNodes())
            {
                node.ImageUrl = "~/Images/img.jpg";
            }

    Hope this helps.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top