This is a migrated thread and some comments may be shown as answers.

Radmenu orientation

1 Answer 107 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Anly
Top achievements
Rank 1
Anly asked on 16 Jul 2013, 01:52 AM
Hellow

How to set the radmenu orientation in javascript?

Thanks
Anly

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Jul 2013, 06:10 AM
Hi Anly,

I guess you want to set the Items Flow of the RadMenu. Please have a look at the following JavaScript code.

JavaScript:
var radmenu = $find('<%=RadMenu1.ClientID %>');
radmenu.get_defaultGroupSettings().set_flow(1);

Thanks,
Princy.
Joan
Top achievements
Rank 1
commented on 07 Jun 2021, 04:17 PM

Can anyone confirm if this syntax is still valid? I am attempting to change the flow from vertical to horizontal in javascript and although I can confirm I am accessing the RadMenu correctly, the ".set_flow()" property is not working for me.
Vessy
Telerik team
commented on 08 Jun 2021, 12:22 PM

Hi Joan,

Currently the orientation of the menu can be changed only on the server-side like demonstrated in the following demo:

https://demos.telerik.com/aspnet-ajax/menu/examples/functionality/itemflow/defaultcs.aspx

Joan
Top achievements
Rank 1
commented on 08 Jun 2021, 02:58 PM

Thanks Vessy.

I currently have a vertical radmenu in a page layout column and the screen contents in the next page layout column. This works great for all devices except ipad portrait (medium viewport). In that case, the menu appears stacked above the screen content so that you have to scroll a full page just to view the content itself. I had hoped to switch the menu to horizontal to eliminate the problem. Since that's not possible, do you know a way I could force the menu to appear as a hamburger?
Vessy
Telerik team
commented on 09 Jun 2021, 07:52 AM

Hi Joan,

Can you ensure that there is no any JavaScript error when the layout of the menu is broken in iPad? Also, are you able to reproduce the same behavior in the Chrome device emulator? Does the issue persists if you remove temporary all custom CSS styles from the page?

In addition, I will suggest that you consider using the Mobile Render mode of RadMenu which comes with a Hamburger icon in mobile devices: https://demos.telerik.com/aspnet-ajax/menu/examples/mobile-and-touch-support/adaptive-behavior/defaultcs.aspx

Tags
Menu
Asked by
Anly
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or