Binding to Sitemap in V2014.415 group item inactive

9 posts, 0 answers
  1. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 18 Jul 2014 Link to this post

    We're binding to a sitemap file as shown below: 

    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap>
      <siteMapNode title="Home" controller="Home" action="index">
        <siteMapNode title="Dashboard"  controller="MyController" action="index" />
        <siteMapNode title="My Future" controller="MyController" action="Input" />
        <siteMapNode title="My Retirement" controller="MyController" action="Input" />
        <siteMapNode title="System">
          <siteMapNode title="Profile" controller="MyController" action="Profile" />
          <siteMapNode title="Income and Expenses" controller="MyController" action="IncomeAndExpenses" />
          <siteMapNode title="Assets and Liabilities" controller="MyController" action="AssetsAndLiabilities" />
          <siteMapNode title="Insurance" controller="MyController" action="Insurance" />
          <siteMapNode title="Bootstrap">
            <siteMapNode title="Typography" controller="system" action="Typography" />
          </siteMapNode>
        </siteMapNode>
      </siteMapNode>
    </siteMap>


    The base controller executes this code in the constructor: 
    if (!SiteMapManager.SiteMaps.ContainsKey("main"))
    {
        SiteMapManager.SiteMaps.Register<XmlSiteMap>("main", sitemenu => sitemenu.LoadFrom("~/Utilities/Sitemaps/Main.sitemap"));
    }

    It's binding correctly using some of the examples shown on these forums. However, the nodes in Bold above don't expand. So clicking on System does nothing. Using Firebug I can see the sub-items are there rendered as a UL so I go into Firebug and remove the display:none attribute. 

    The first screenshot "How it should look.png" shows what it should look like expanded. 
    Note: I had to use Firebug to get it to display. Clicking on System does nothing... doesn't even throw any errors. 

    Note 2: When this panelbar is used on a page that is not included in the Sitemap or rendered out as part of the HTML hierarchy then the items expand, but on pages that do exist in the Sitemap, it doesn't work at all. 

    Any ideas or do you need more information? 










  2. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 22 Jul 2014 in reply to Jacques Link to this post

    What is the expected response time in this premium forum? 
  3. Kendo UI is VS 2017 Ready
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 22 Jul 2014 Link to this post

    Hello Jacques,

    We tried reproducing the problem, to no avail -- see the attached solution. One thing we noted is that you might need to set the controller name as "My" (omitting the "Controller" suffix) if your site has URLs like My/Profile.

    The forum response time is 48 hours, as shown on our site.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 22 Jul 2014 in reply to Alex Gyoshev Link to this post

    Hi Alex, 

    Sorry the MyController part was just replacing the actual controller names for obfuscation purposes. 

    I'll take a look at your project. 

  6. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 22 Jul 2014 in reply to Alex Gyoshev Link to this post

    your sample uses v2014.2.x when I try to update this to 2014.1.415 the cdn doesn't work: 
    http://cdn.kendostatic.com/2014.1.415/js/kendo.all.min.js

    How can I reference that version? 
  7. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 22 Jul 2014 Link to this post

    Hello Jacques,

    If you are using the Q1 SP1, it has the version 2014.1.416. Here is the CDN link.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  8. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 22 Jul 2014 in reply to Alex Gyoshev Link to this post

    That link works, but when I try to update the Kendo.Mvc.dll I get this error: 
    CS1705:
    Assembly 'Kendo.Mvc, Version=2014.1.415.545, Culture=neutral,
    PublicKeyToken=121fae78165ba3d4' uses 'System.Web.Mvc, Version=5.0.0.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher
    version than referenced assembly 'System.Web.Mvc, Version=4.0.0.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35'

    Essentially I want to make sure we're testing the same thing. 
  9. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 23 Jul 2014 in reply to Alex Gyoshev Link to this post

    Any ideas? 
  10. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 23 Jul 2014 Link to this post

    Hello Jacques,

    The error is triggered by the version of the Kendo.Mvc DLL. The last digits in the version (2014.1.415.545) correspond to the MVC dependency and the .NET framework version -- in this case, MVC 5 + .NET 4.5 makes the 545. So, make sure that you are using the right DLL from the Binaries folder of the distribution archive.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready