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

RadTreeView Contril IMAGE URL

2 Answers 70 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
pasam Anna
Top achievements
Rank 1
pasam Anna asked on 27 Nov 2009, 11:15 AM
Hi
How to add imageurl from datatable to treeview control.
I have tried which the sample u given
http://www.telerik.com/help/aspnet/treeview/tree_nodebound.html

protected void HandleNodeBound(object sender, RadTreeNodeEventArgs NodeEventArgs)  
   {  
       DataRowView dataSourceRow = (DataRowView)e.NodeBound.DataItem;  
       e.NodeBound.Image = dataSourceRow["Image"].ToString();  
       ...  
   }  
 
 <rad:RadTreeView  
       ID="RadTree1" 
       runat="server"        ...  
       OnNodeBound="HandleNodeBound"/> 
But this OnNode Event is not firing.
I dAtatable I have imageURL columun.
Every node i hve Separate image.
How to achieve this

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Nov 2009, 11:18 AM
Hello,

This help article is for RadTreeView for ASP.NET, but I guess you're using RadTreeView for ASP.NET AJAX. Here is the correct article.

Kind regards,
Yana
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
pasam Anna
Top achievements
Rank 1
answered on 30 Nov 2009, 12:29 AM
Hi
   Thanks you so much for your reply.
This is the one I want.
Tags
TreeView
Asked by
pasam Anna
Top achievements
Rank 1
Answers by
Yana
Telerik team
pasam Anna
Top achievements
Rank 1
Share this question
or