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

LoadContentFrom not calling my controller

1 Answer 211 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Alden
Top achievements
Rank 1
Alden asked on 03 May 2013, 10:27 PM
Hi, I've begun the process of upgrading my MVC Telerik Extension app to Kendo.  I am on MVC4 using the server wrappers.  It didn't take long before I ran into a perplexing issue.
The first thing I did was upgrade the menu to this:
@( Html.Kendo().Menu()
    .Name("Menu")
    .Items(menu =>
    {
        menu.Add().Text("Tasks").Action("Index", "Tasks");
       @* Rest eliminated *@
    })
)
And I get JS error jQuery(...).kendoMenu is not a function in the browser on this code:
jQuery(function(){jQuery("#Menu").kendoMenu({});});
On that same page is a tabstrip here:
@( Html.Kendo().TabStrip()
    .Name("TabStrip")
    .Items(parent =>
    {
        parent.Add()
            .Text("My Tasks")
            .Selected(true)
            .LoadContentFrom("MyTasks", "Tasks");
        @* Abbreviated *@
    })
)
But this never calls my MyTasks controller.  This all worked fine with the Extensions, so I must have a configuration issue, right?  What am I doing wrong?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 07 May 2013, 08:39 AM
Hello Alden,

Make sure you checked the troubleshooting guide:

http://docs.kendoui.com/getting-started/troubleshooting#javascript-error-that-kendo-widgets-are-unavailable-or-undefined

Also in the process of updating the following topic (and the other subtopics in the TreeView on the left for the different widgets) should be of help:

http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/migration/migrating-from-telerik-extensions-for-aspnet-mvc


Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TabStrip
Asked by
Alden
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or