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

Set intial view to remote (partial) view using MVC wrappers

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 01 May 2015, 02:40 PM

I'd like to load the first item in my MobileTabStrip (a remote partial view) by default. How can I accomplish this?  Right now, the application works but I have to click on a tab strip item to load content.

 

My mobile layout is like the following:

@{ Html.Kendo().MobileLayout()
.Name("Test")
.Footer(() =>
{
Html.Kendo().MobileTabStrip()
.Items(items =>
{
items.Add().Icon("globe").Text("Stuff").Url(@Url.RouteUrl(new { Controller = "Controller1", Action = "Index" }));
items.Add().Icon("contacts").Text("Some other stuff").Url(@Url.RouteUrl(new { Controller = "Controller2", Action = "Index" }));
})
.Render();
})
.Render();
}

 

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 05 May 2015, 11:42 AM
Hello Bryan,

You can either specify the selected index, navigate to that page with a certain URL that will load the desired tab or use the switchTo method.

Regards,
Alexander Popov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Bryan
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or