Welcome Guest Search | Active Topics | Sign In | Register

Web.DataBindings() TreeView / Icons and tooltip in menues Options
ITMA
Posted: Sunday, August 22, 2010 9:02:01 AM
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
ITMA
Posted: Sunday, August 22, 2010 10:55:16 AM
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
eo_support
Posted: Monday, August 23, 2010 10:40:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Glad that it worked out for you. Thank you very much for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.