The property RepeatColumns can be set dynamically on server side according to number of items. You can look for items which have three or more child items and then set to such items the property RepeatColumns as the following C#:
foreach (RadMenuItem item inmenu1.Items)
int itemsCount = (item as RadMenuItem).Items.Count;
int maxItemInRow = 3;
if (itemsCount > maxItemInRow)
item.GroupSettings.RepeatColumns = 3;
Please, find a sample solution in the attachment.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
That worked, ty! One other question on this topic, I'm very new to Telerik so I'm learning as I go. When a "control" is used (like this one for example) are there predefined classes/id's that are assigned to the elements?
The reason I'm asking is because I'm trying to create a VERY specific menu design and while I was able to whip it out in css, I'm having a hard time understanding the telerik output to see if I can incorporate it.
Here's what I'm trying to do (attached file)::
I want submenu titles that could or could not be links, now I'd typically identify them during their creation (this time from a DB call) and assign an id/class to them to know, however, I'm not entirely sure I can do that with this control.