Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Shehan on Aug 23, 2008 06:03
open dhtmlx forum
DHTMLX Menu Scroller issue

My menu structure is pretty big. It troubles me when i load it from a single XML. So I breaked into pieces and combined using "submenu" attribute. now the loading time is fine but each menu takes seperate loadings.
Anyways my issue is, I was having the submenu position error and got solved using "disableSmartPositioning". But i lost scrollers. Now its not getting the scrollerbars anymore. Even i have defined maxSize, mode attributes correctly. So submenus are like really long. Usability vise I have faced to a serious issue. Please help. My XML(small part) is:

Main File
======
<?xml version="1.0" encoding="UTF-8"?>
    <menu name="abc" maxItems="10" width="100%" height="30" absolutePosition="auto" menuAlign="left" mode="classic">
    <MenuItem name="xyz" id="1" width="90px" src="programs.gif" submenu="menu_1.xml"></MenuItem>
    </menu>

Sub File (menu_1.xml)
======
<?xml version="1.0" encoding="UTF-8"?>
    <menu name="abc" maxItems="10" width="100%" height="30" absolutePosition="auto" menuAlign="left" mode="classic">
    <MenuItem name="Workflow`" id="2742" />
    <MenuItem name="Workflow Management"/ >
    </menu>

(Files are too long. I have put only few lines)

Answer posted by Support on Aug 25, 2008 02:26
Problem confirmed and fixed, please try to use attached js file instead of original one. 
Attachments (1)
Answer posted on Aug 25, 2008 02:59

Brilliant!! It just started to work once I replaced the JS file. Thanks a lot!  

Now the scroller is there. Only thing I noticed is when I click on a menu Item it takes some time to load the submenu content. Are there any other way we can get sorted out this?

 Appreciate your help!

Answer posted by Support on Aug 25, 2008 04:56
The menu can be loaded all at once , or each branch dynamically. 
In first case you will have long initial stage, but fast work after it. 
In second case you will have fast loading, but some timing each time when new sub-menu opened. 

There is no any third mode, which will provide benefits of two existing ones
Answer posted by Shehan on Aug 25, 2008 21:43
Ok I'll move on with the 2nd option since i have already implemented it and got to use. In the future I hope you'll come up with the third option where we can load menus fast in the dynamic mode.
Thanks a lot!