Mono Support HTML5 menu selected class not printed 

Viewed 12132 time(s), 7 post(s), 11/15/2013 8:54:23 AM - by sonap
11/15/2013 8:54:23 AM
475 Reputation 52 Total posts

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

1
11/15/2013 9:57:59 AM
15993 Reputation 2214 Total posts

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

2
11/15/2013 10:14:25 AM
475 Reputation 52 Total posts

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

3
11/15/2013 2:52:35 PM
15993 Reputation 2214 Total posts

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

4
11/18/2013 9:15:35 AM
15993 Reputation 2214 Total posts

Hi,

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

Regards

5
11/18/2013 10:03:47 AM
475 Reputation 52 Total posts

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

6
11/18/2013 10:44:17 AM
15993 Reputation 2214 Total posts

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

Regards

7
This is a demo site for MonoX. Please visit Mono Software for more info.