Hi,
Is it possible to change the forecolor for a webdatamenu rootlink when you hover over the link?
I managed to change the color of the rootlink itself in "MenuItemHorizontalRootLink", however changing the color in "MenuItemHorizontalRootHover" does absolutely nothing, the color stays the same.
I use appstylist version 11.2.20112.1019
Regards,
Marijn
Hi Nikolay,
The appstylist does not provide a means of changing generated classes like ".igdm_MenuItemVerticalHover > a" and a lot of other generated classes for webdatamenu
why is that?
Regards
Hi marijn_desmet,
Please let me know if you have any further questions.
Hello marijn_desmet,
I'm glad you solved your issue.
To change the styles of a control from the AppStylist, you could open an existing style library, make the necessary changes and save the library. Then you should import the style set you have edited and set the StyleSetName property of the control to the name of this set. More information about opening and saving style libraries can be found here: http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebAppStylist_Opening_a_Saved_Style_Library.html; http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebAppStylist_Saving_Your_Work.html.
If you have any other questions, please feel free to contact me.
I found it myself. You have to change some classes in the generated css file for the webdatamenu.
Example:
.igdm_PlainMenuMenuItemVerticalHover > a{ color:Black;}
Why can't you change these classes from within the appstylist?
The problem is not the background color not changing, that works fine because i use no background images.
The problem is the "forecolor" of the item not changing when you hover over the item, even when you set the "color" in "MenuItemHorizontalRootHover".
For example: say you set the forecolor of the rootitem to blue in "MenuItemHorizontalRootLink" and you set the forecolor to red in "MenuItemHorizontalRootHover". When you hover the item, the forecolor stays blue.