Welcome Guest Search | Active Topics | Sign In | Register

Menu with different BackColor to specific items Options
Ancorensis CRL
Posted: Thursday, May 30, 2013 9:40:36 AM
Rank: Newbie
Groups: Member

Joined: 3/24/2009
Posts: 5
Hello,

it's possible to have a Menu with different BackColor for specific items?

I tried something like:

Dim binding As New EO.Web.DataBinding()
binding.DataField = "CorFundo"
binding.Property = "NormalStyle|BackColor"

but it's not working.

Best regards,
Sérgio Gonçalves
eo_support
Posted: Thursday, May 30, 2013 2:55:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You can not bind it that way. What you can do is to bind a special value into the MenuItem's Value property, then handle the menu's ItemCreated event, you can then use code to set the MenuItem's background color inside your ItemCreated event based on the item's Value property.

Thanks!


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.