Rank: Advanced Member Groups: Member
Joined: 6/23/2010 Posts: 48
|
Hi,
From my perspective below example follows instruction given in documentation that I've been able to find and understand.
_________________
TreeView1.DataSource = mainDs TreeView1.DataFields = "FolderName"
'Dim binding As New EO.Web.DataBinding() 'binding.DataField = "Url" 'binding.Property = "NavigateUrl" 'TreeView1.Bindings.Add(binding)
Dim NodeUsp As New EO.Web.DataBinding NodeUsp.DataField = "Usp" NodeUsp.Property = "Tooltip" TreeView1.Bindings.Add(NodeUsp)
Dim ImageUrl As New EO.Web.DataBinding() ImageUrl.DataField = "Icon" ImageUrl.Property = "LeftIcon" TreeView1.Bindings.Add(ImageUrl)
TreeView1.DataBind()
TreeView1.ExpandAll()
_________________
The first binding part that is disabled works. However when using similar construction in the two following databinding parts, it doesn't. I have Thoroughly examined my datasource, as well the treeview itself, that works fine. However, without tooltip and icons.
Thanks,
Best regards,
ITMA
|
Rank: Advanced Member Groups: Member
Joined: 6/23/2010 Posts: 48
|
Found the solution...
The correct solution I found myself:
Dim ImageUrl As New EO.Web.DataBinding() ImageUrl.DataField = "Icon" ImageUrl.Property = "ExpandedImageUrl" TreeView1.Bindings.Add(ImageUrl)
As I'm using a TreeView an not a ContextMenu.
Best,
ITMA
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
Glad that it worked out for you. Thank you very much for the update!
|