This is a migrated thread and some comments may be shown as answers.
Using LoadFromContent results in full page load
2 Answers 52 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin
Top achievements
Rank 2
Kevin asked on 12 Jan 2010, 04:47 PM
I have a tab strip defined:

<% Html.Telerik().TabStrip().Name("SKEDTabs"
           .Items(parent => 
                      { 
                          parent.Add().Text("MY TASKS").LoadContentFrom("Index""MyTasks").; 
                          parent.Add().Text("WORKCENTER").LoadContentFrom("Index""Workcenter"); 
                      }).Render(); %> 

However, when I click on a tab, it performs a full page load, and doesn't load the content into the tab view.


2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 13 Jan 2010, 09:05 AM
Hello Kevin,

There are many causes for the aforementioned erroneous behavior.
Could you please verify that the requested Actions actually returns the View with PartialView() method?

The LoadContentFrom() method expects Action name as first parameter and Controller name as second. I noticed that you are passing them in a opposite way. I will suggest you review this help topic and examine the online demo for more information.

All the best,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Craig
Top achievements
Rank 1
answered on 20 Dec 2010, 10:49 PM
Any updates on this?  I'm having the exact same problem.  Can tab controls not be created in an ascx file?  

I've tried about 10 different things and every time it loads the content to a new page.  I know the partial view exists because it keeps opening in a new window.  Plus, it it didn't exist, your tabstrip returns a 404 or a 500 error alert message.

tabstrip call:

 parent.Add()

            .Text("Calendar")

            .LoadContentFrom("Calendar", "Group");


controller:

public ActionResult Calendar()
 {

        return PartialView();

 }

Tags
TabStrip
Asked by
Kevin
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Craig
Top achievements
Rank 1
Share this question
or