Hi,
Is it possible to prevent the web menu from closing when an item is clicked. The onclick event is simply calling a javascript method and i do not want the menu to disappear.
Kind Regards,
Martyn Lawson
Seems like I have a similar problem.Very disappointing to see no post or guiding to this (and other) problems reported considering the amount of days since posted.
There's no built in feature for this, but it can be accomplished by using one of the client-side events. You can use the ShowSubMenu client-side event, and simply return true to cancel the submenu from closing. It sounds like you only want the submenu to remain open if an item is clicked - in that case you'll want to raise a flag in the itemclick client-side event, and check that condition in your showsubmenu handler. Here's a simple code snippet to get you startedfunction ShowSubMenu(menu, item, show) {
if(!show)return true;
}<ig:UltraWebMenu runat="server" ID="menu"><MenuClientSideEvents SubMenuDisplay="ShowSubMenu" />
<Items>
<ig:Item Text="hello"><Items><ig:Item Text="hello1"></ig:Item></Items></ig:Item>
</Items>
</ig:UltraWebMenu>
BTW, if you ever have trouble getting an answer in the forums, you can use one of the other support channels listed here - http://ko.infragistics.com/gethelp
Hope this helps,
-Tony
Txs - I will try out this.Not that familar with that client/inline stuff but anyhow.
My intention was to leave the submenu open but still execute the <a> tag. Like my Ipod do.Imagine having 3 or even 4 level of submenues and always spinning the wheelfrom the topmost level.Even an evangelist would get tired of this :-)
There's actually an IPod like navigation mechanism built into the menu. check out the drilldown sample online at samples.infragistics.com