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

Binding to Sitemap in V2014.415 group item inactive

8 Answers 43 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Jacques
Top achievements
Rank 2
Jacques asked on 18 Jul 2014, 02:27 PM
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? 










8 Answers, 1 is accepted

Sort by
0
Jacques
Top achievements
Rank 2
answered on 22 Jul 2014, 07:50 AM
What is the expected response time in this premium forum? 
0
Alex Gyoshev
Telerik team
answered on 22 Jul 2014, 09:50 AM
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!
 
0
Jacques
Top achievements
Rank 2
answered on 22 Jul 2014, 10:10 AM
Hi Alex, 

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

I'll take a look at your project. 

0
Jacques
Top achievements
Rank 2
answered on 22 Jul 2014, 10:30 AM
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? 
0
Alex Gyoshev
Telerik team
answered on 22 Jul 2014, 10:34 AM
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!
 
0
Jacques
Top achievements
Rank 2
answered on 22 Jul 2014, 10:47 AM
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. 
0
Jacques
Top achievements
Rank 2
answered on 23 Jul 2014, 07:02 AM
Any ideas? 
0
Alex Gyoshev
Telerik team
answered on 23 Jul 2014, 11:48 AM
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!
 
Tags
PanelBar
Asked by
Jacques
Top achievements
Rank 2
Answers by
Jacques
Top achievements
Rank 2
Alex Gyoshev
Telerik team
Share this question
or