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

Sitemap Column Question

3 Answers 70 Views
SiteMap
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 08 Aug 2018, 10:06 PM

I have been looking for a bit, and have not found the answer.  I feel like I just might have overlooked it.  

How does the RadSiteMap control know where to break the items into the next column.  I am using one of your demos (loading it with XML from code behind - which doesn't work straight out of the ZIP btw).  The menu item is set up with a RadSiteMap control with three columns.  I can add and remove items from each of the groups, and it will continue to break in the same place.  There are two groups under the first column, and one group under each of the others.  How does it know, or - more importantly - how do I tell it when to break to another column?

3 Answers, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 1
answered on 10 Aug 2018, 04:38 PM
Anyone?
0
Marin Bratanov
Telerik team
answered on 11 Aug 2018, 04:15 PM
Hello Brian,

The example replaces the menu items with sitemap nodes and adds some styling. If we ignore the styling, the arrangement of the nodes comes from the sitemap control settings (lines 32-35 in the example): https://docs.telerik.com/devtools/aspnet-ajax/controls/sitemap/functionality/layout. Perhaps you will get a better idea of how this works if you remove the stylesheet and toggle the RepeatDirection value. You can also add another group of items to the first menu item data source to see how order goes.I am also attaching here screenshots with explanations and a sample modification of the files that showcases the difference. If you add more groups to render, the way they are filled will keep changing as it depends on the chosen number of columns and the total amount of groups to render. I hope this explains the situation and helps you move forward.
On the xml loading - the menu expects a path to an xml file and does not directly support an archive.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Brian
Top achievements
Rank 1
answered on 13 Aug 2018, 02:14 PM
Thank you.  I was thinking about it too hard.  It is all based on the number of columns allocated.  Since there were three columns, column one would always have two groups when there are four groups in the XML
Tags
SiteMap
Asked by
Brian
Top achievements
Rank 1
Answers by
Brian
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or