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.

MonoXMenuHTML5.ascx dropdown animation  (Mono Support )

Viewed 4206 time(s), 4 post(s) 4/15/2014 11:50:38 AMby panos.pag
panos-pag

panos.pag

4/15/2014 11:50:38 AM
Hello,

Could you tell me how to de-activate the drop doawn animation effect for the level0 childs of the monoX menu?

Thanks!

Panos
This content has not been rated yet. 
390 Reputation 35 Total posts
ivanb

ivanb

4/15/2014 1:04:42 PM
Hi Panos.Pag,
all animations in navigation are handled by javascript. Here you can find original script and it's options, and probably you can find your solution there.

Best regards,
Ivan
This content has not been rated yet. 
459 Reputation 55 Total posts
panos-pag

panos.pag

4/16/2014 8:27:11 AM
Thank you for your reply!

I found this js code in MonoXMenuHTML5.ascx:

$(document).ready(function () {
            InitResponsiveNav();
            if ( typeof(Sys) !== "undefined"  ) {
                var prm = Sys.WebForms.PageRequestManager.getInstance();
                if (prm != null) {
                    prm.add_endRequest(function (s, e) {
                        InitResponsiveNav();   
                        $(window).trigger("resize"); //Reinit
                    });
                }
            }
        });

    function InitResponsiveNav() {        
        //$('#<%= this.ClientID %>').responsinav({ breakpoint: <%= ResponsiveDesignBrakeWidth %> });
}

function InitResponsiveNav() {       
        $('#<%= this.ClientID %>').responsinav({ breakpoint: <%= ResponsiveDesignBrakeWidth %> });
}
But I cannot figure out how to disable it, since "commenting" it makes ths drop down not to function at all.

thank you,
Panos 

This content has not been rated yet. 
390 Reputation 35 Total posts
ivanb

ivanb

4/16/2014 9:01:54 AM
Hi Panos.Pag,
in jquery.responsivenav.js  find part of code beneath "// Behavior " and set number '300' to '0' in all 3 places, and that should solve your problem.

Regards,
Ivan
This content has not been rated yet. 
459 Reputation 55 Total posts