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

How to pass models via the kendo tabstrip mvc wrapper

1 Answer 101 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 20 Feb 2014, 04:42 AM
hi there,
I've been trying to pass a model to a partial view that is accessed by a kendo tabstrip. but I cant get it to work. is this even possible?

here is my view

@(Html.Kendo().TabStrip()
        .Name("tabsStrip")
        .Items(items =>
        {
            items.Add()
                .Encoded(false)
                .Text("Computer <span class='k-state-active'></span>")
                .Content(Html.Partial("_Computer", ComputerModel).ToHtmlString())  -> is there a way to pass the computer model to the partial view?                
               .Selected(true);
            items.Add()
                .Encoded(false)
                .Text("User <span></span>")
                .Content(Html.Partial("_User").ToHtmlString());      
        }))

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Feb 2014, 08:40 AM
Hello Juan,

Yes, this should be possible and the code that you provided looks OK. The model can be passed 
to the Partial helper as in any other case. What problems are you experiencing with the code that you are currently using?

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