i have looked thru a number of posts, tried a lot of different things, and cannot get this to work. When I click on a menu item (say from the home page), it navigates to the selected screen. From that page, I want to change the background color of the menu item. I cannot do it from the .aspx using the cssclass, as one screen contains 2 menu items (for example, one screen on my website contains both 'Forms' and 'Links'). When 'Forms' is click, I want to highlight it in the menu and same for 'Links'. They both go to the same page.
I have tried both the following, but neither work. They are in my Page_Load.
radmenu1.items(11).cssclass='SelectedItem'
AND
I have tried both the following, but neither work. They are in my Page_Load.
<style type="text/css">
.selectedItem {
background-color: #FFD92F !important;
color: #000000 !important;
}
.rmItem { border-right: 1px solid white; }
.rmItem { border-top: 1px solid #7F8ECB; }
</style>
radmenu1.items(11).cssclass='SelectedItem'
AND
Dim currentItem as Telerik.Web.UI.RadMenuItem
currentItem = radMenu1.FindItemByText(
"Forms")
currentItem.CssClass=
"SelectedItem"
Thanks,
Susan Pelzel