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

Styling Databound RadMenu

1 Answer 62 Views
Menu
This is a migrated thread and some comments may be shown as answers.
AJ
Top achievements
Rank 1
AJ asked on 14 Apr 2011, 04:38 PM
I'm playing around with the Q1 2011 Rad menu.

I'm able to easily style a static menu without problems, however, now I'm looking at a radmenu bound to an SQLDataSource. I've gone through several example (however have not tried adding C# code yet).

Can someone point me in the direction to successfully styling and configuring the radmenu items in this scenario (i.e. hover over background image, normal background image, etc)

Thanks!

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Apr 2011, 12:12 PM
Hi AJ,

You can handle ItemDataBound to set the following menu item properties:

protected void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e)
   {
       e.Item.CssClass = "CssClass";
       e.Item.ClickedCssClass = "ClickedCssClass";
       e.Item.ExpandedCssClass = "ExpandedCssClass";
       e.Item.FocusedCssClass = "FocusedCssClass";
       e.Item.SelectedCssClass = "SelectedCssClass";
   }


Kind regards,
Peter
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Menu
Asked by
AJ
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or