I have implemented a RadMenu with everything being handled in the code behind. I am trying to dynamically set the number of columns based on the total number of menu items (nodes and child nodes). I am doing something like this:
// determine column count
int rowsPerColumn = 15; // [TODO] Add value to site meta data to allow adjusting length per site
int columnCount = (int)Math.Ceiling(((double)_menuItemCount / (double)rowsPerColumn));
rootLevelSetting.ListLayout.RepeatColumns = columnCount;
The value for _menuItemCount is being updated during the PopulateSiteMap function. That is working fine. And, so is the assigning of the column count. For one of my menu items, I am getting a long first column and short second and third columns. Three columns should work fine. I have attached some images for review. Ideally, the second column should start with the External category.
Any help would be appreciated!
Bill
Telerik.Web.UI v2013.1.220.40 (I know we are behind a bit -- working on that :) )
// determine column count
int rowsPerColumn = 15; // [TODO] Add value to site meta data to allow adjusting length per site
int columnCount = (int)Math.Ceiling(((double)_menuItemCount / (double)rowsPerColumn));
rootLevelSetting.ListLayout.RepeatColumns = columnCount;
The value for _menuItemCount is being updated during the PopulateSiteMap function. That is working fine. And, so is the assigning of the column count. For one of my menu items, I am getting a long first column and short second and third columns. Three columns should work fine. I have attached some images for review. Ideally, the second column should start with the External category.
Any help would be appreciated!
Bill
Telerik.Web.UI v2013.1.220.40 (I know we are behind a bit -- working on that :) )