Sitemap Column Question

4 posts, 0 answers
  1. Brian
    Brian avatar
    30 posts
    Member since:
    Jun 2015

    Posted 08 Aug 2018 Link to this post

    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?

  2. Brian
    Brian avatar
    30 posts
    Member since:
    Jun 2015

    Posted 10 Aug 2018 Link to this post

    Anyone?
  3. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4625 posts

    Posted 11 Aug 2018 Link to this post

    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.
  4. Brian
    Brian avatar
    30 posts
    Member since:
    Jun 2015

    Posted 13 Aug 2018 in reply to Marin Bratanov Link to this post

    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
Back to Top