I have an UltraWebMenu control that is on a master page. The control is populated dynamically when a content web page (i.e. based on the master page) is initially loaded. The menu items are displayed, and the menu behaves as expected (slide, shadow, item spacing etc) but few of the visual properties of the control are rendered correctly. In particular, the background colour and any images are ignored, as are foreground colours. The font size is respected as is the [Bold] attribute but [Italics] is not. This is the case even if a Preset is chosen from the Quick Designer. Nor does it matter how the attributes are set - via declarations of the control, via inline CSS, via an external CSS file or via program code - the menu stoically displays with black letters on a white background.
I have proven that my programming logic is correct by populating an UltraWebMenu on a web page that is not based on a Master page - it renders correctly.
I really need to have the menu integrated into the Master page. Any advice or assistance would be gratefully received.
Kind regards
Paul Shearing, Caterham, EnglandVS 2008 Pro, C#. Infragistics Netvantage for ASP.NET 2008 release 1, XP Pro SP3, 4GB RAM, Loadsa disk space
Hello Paul,
Thanks for writing. While I can speculate and probably provide some suggestions out of experience, I believe that the best and fastest approach in this case is to contact our Developer Support Department directly - and especially, if you have the time - with a small subset of your project reproducing the issue - chances are, you will get a better suggestion / fix / workaround asap.
DS Department can be reached via this link:
http://www.infragistics.com/gethelp/default.aspx
Other than that, I have seen the same symptons in pages with global CSS classes, that are overridden. For example, the menu items render is plain table cells (<td> tags), so if you have global CSS td, tr, or table setting for the page, this may interfere with how menu styles are applied to the menu.
Thanks Rumen
You are definitely on the right track. If I remove the reference to the external style-sheet that is contained within the header of the master page then the menu renders correctly. So, as you suggested, there is some kind of clash between the styles. I rely heavily on this external style sheet so I shall experiment further to discover what part of it is causing the problem.
At least I have an explanation. Understanding the nature of the problem has got to be at least 90% of the solution.
Many thanks for your prompt and perceptive response.
Paul
Glad I was able to help at least a little. You can experiment with the CSS !important clause for styles to force breaking the inheritance chain from parent, this may work in some cases.
You were right. The offending line was at the start of the CSS file:
body, p, td, th, div, blockquote, dl, ul, ol{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 1em; color: Black; background-color: White; font-style: normal; text-align: left; padding: 0 0 0 0; margin: 0 0 0 0; }
It was the th and td terms that caused the problem. I removed them and the menu control now renders correctly. It was obvious once I knew that menus are rendered using table-based technology.
So, thanks again and I hope that this thread will be of use to others such as DaveL
Kind regard
Rather than starting a new thread I thought I would post this in here as it is ultrawebmenu and master page related. I have the following structure to a new web application and am having difficulty using the ultrawebmenu with a master page.
Content pages~/default.aspx~/clientarea/default.aspx~/clientarea/diary.aspx
Master pages~/default.master
The three content pages above are linked to the master page, I have created a site map and bound the ultrawebmenu to the sitemap datasource on the master page(to be clear I am trying to use the ultrawebmenu on a master page), when I try to navigate to the pages in the clientarea folder I am receiving the following error message;
"Cannot use a leading .. to exit above the top directory"
I can lose this problem by moving the master page into a directory something like ~/resources/masters/ however, I then structured the menu to have three levels, home, clientarea as a child of home, and diary as a child of clientarea, when on the homepage the image indicator on the clientarea link worked but when I navigated to the clientarea or the diary page the image to indicate that there was a child of the clientarea link was not displaying correctly, it looked like a broken link, can the ultrawebmenu be used with master pages? Is this a bug? or am I doing something wrong? Personally I don't think it is me, any help would be greatly appreciated...
Version detail informationVS2005 Professional with SP2 (Version 8.0.50727.867 (vsvista.050727.8600)).NET Framework Version 2.50727.3053ASP.NET Version 2.50727.3053UltraWebNavigator Version 8.2.20082.1000
regards
John C.
I forgot to indicate that I had applied application styling to the web application, I have noticed that when I disable app styling for the ultrawebmenu the error message ("Cannot use a leading .. to exit above the top directory") disappears, surely this is application styling related with perhaps the way that css files are referenced? I will continue to investigate and report back any info that I find, my initial questions do still stand however, can the ultrawebmenu be used with a master page?
regards,