MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

HTML5 menu selected class not printed  (Mono Support )

Viewed 11366 time(s), 7 post(s) 11/15/2013 8:54:23 AMby sonap
sonap

sonap

11/15/2013 8:54:23 AM
Hello, I am  using the HTML5 menu in the latest night built version of monox.
The problem is there is no "selected" class for the active menu item

As you can see it only containes empty class markup:

<ul class="level0" style="display: block !important;">    <li class=" " title="Community"><a href="/MonoX/Pages/SocialNetworking/Dashboard.aspx">Community</a></li>    <li class=" " title="Groups"><a href="/MonoX/Pages/SocialNetworking/Groups.aspx">Groups</a></li>    <li class=" " title="Blogs"><a href="/Blog.aspx">Blogs</a></li>    <li class=" " title="Messages"><a href="/MonoX/Pages/SocialNetworking/InMail.aspx">Messages</a></li></ul>

The same happens in the MonoX site
http://monox.mono-software.com/MonoX/Pages/Features.aspx

Any syggestions?
I would also like to ask if there is some short of documentation on how to customize the menu (not in terms of css). 

Thank you,
Panos
This content has not been rated yet. 
475 Reputation 52 Total posts
khorvat

khorvat

11/15/2013 9:57:59 AM
Hi,

this issue has been fixed in 4.8 version, so please try to apply the following patch:

Change the following line in the "MonoXMenuHTML5.ascx Revision 4258"
<li class='<%# GetItemCssClass((HierarchyData<NavigationMenuItem>)Container.DataItem) %> <%# SetItemClass(Eval("Item.Url").ToString()) %> <%# Eval("Item.CssClass").ToString() %>' title='<%#Eval("Item.ToolTip") %>'><%# Convert.ToBoolean(Eval("Item.Url").ToString().Length > 0) ? "<a href=\"" + Eval("Item.Url") + "\">" : "<a href=\"#\">"%><%#Eval("Item.Title") %></a>
To
<li class='<%# GetItemCssClass((HierarchyData<NavigationMenuItem>)Container.DataItem) %> <%# Eval("Item.CssClass").ToString() %>' title='<%#Eval("Item.ToolTip") %>'><%# Convert.ToBoolean(Eval("Item.Url").ToString().Length > 0) ? "<a href=\"" + Eval("Item.Url") + "\">" : "<a href=\"#\">"%><%#Eval("Item.Title") %></a>
This may fix the issue you have, if it doesn't fix it you will need to upgrade your MonoX version to the latest 4.8.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
sonap

sonap

11/15/2013 10:14:25 AM
Hello KHORVAT,

Thank you for your reply.

I am using the same code (in fact I am using the MonoX v4.8.40.4710 [10/18/2013] version
This content has not been rated yet. 
475 Reputation 52 Total posts
khorvat

khorvat

11/15/2013 2:52:35 PM
We have identified the issue and we are working on this as we speak. Let me know if you own a source code package or not ?

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

11/18/2013 9:15:35 AM
Hi,

we have fixed reported issue, please let us know how we can deliver this to you ?

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
sonap

sonap

11/18/2013 10:03:47 AM
Hello, Thank's a lot!

I am working on the free version so I guess I will be able to fix it only if you apply it in a 'nightly build' update or something.

Thans again!

Panos
This content has not been rated yet. 
475 Reputation 52 Total posts
khorvat

khorvat

11/18/2013 10:44:17 AM
Ok, then please download the MonoX nightly build after the "2013-11-20 18:00:00 GMT+1"

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts