How to programmatically iterate through TAdvSmoothMegaMenu

I tried to programmatically iterate a megamenu's sections and items, to enable/disable items based on user permissions, but couldn't find any Count properties for Sections and Sections Items.
Could you make it accesible? Or at least show a way to iterate through the complete menu?
There must be something I could not find.

If you drop a new TAdvSmoothMegaMenu component on the form, this code will show the nr. of sections in the menu under root item 1:


I couldn't see this .Menu path. I was just using .MenuItems[i].Sections ... and this way there is no .Count .

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.