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

Tabstrip within a Window

2 Answers 60 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Scarruthers
Top achievements
Rank 1
Scarruthers asked on 21 Jan 2011, 01:33 PM
Hi,

We're trying to use a tabstrip within a Telerik window. Each tab uses the "LoadContentFrom" method to populate the tab from a partial view. The problem is that when a tab is clicked, the partial view is navigated to (as a full page) rather than loading within the tabstrip.

Any help appreciated.

Thanks,
Steven

Code sample:

@{
    Html.Telerik().TabStrip()
            .Name("TabStrip")
            .Items(tabstrip =>
            {
                tabstrip.Add().
                    LoadContentFrom("Wizard1", "Portfolio", Model)
                    .Text("Step 1");
                tabstrip.Add()
                    .LoadContentFrom("Wizard2", "Portfolio")
                    .Text("Step 2");                 
            })
            .SelectedIndex(0)       
            .Render();  
}

public ActionResult Wizard1()
        {
            return PartialView();
        }

2 Answers, 1 is accepted

Sort by
0
Stéphan Parrot
Top achievements
Rank 1
answered on 20 Dec 2011, 01:55 PM
I have the very same problem, you have found a solution?
0
Georgi Tunev
Telerik team
answered on 21 Dec 2011, 03:37 PM
Hello Stéphan,

 Such behavior indicates that the scripts are not loaded. You need either to upgrade to a newer version or manually register the JS files required by the tabstrip.

If you still experience problems, please provide a sample project so we can get a better view over your exact setup and logic.

Kind regards,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
TabStrip
Asked by
Scarruthers
Top achievements
Rank 1
Answers by
Stéphan Parrot
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or