12.7. TabStrip
The TabStrip control is designed to have a tab navigation style in the same way as RadTabStrip for ASP.NET AJAX. It is composed of a set of TabStripItem objects, each with its own content that is shown when the tab item is selected.
You can add TabStripItem objects declaratively, or they can be created by binding TabStrip to a view model object. You need to at least set the Name property and add one TabStripItem to the Items collection.
12.7.1. Creating a TabStrip Declaratively
Listing 12-23 shows you how to declaratively create a TabStrip. See how it looks in Figure 12-22.
Example 12.23. TabStrip Declarative Creation
Controller public ActionResult DeclarativeItems() { return View(); } View <% Html.Telerik().TabStrip() .Name("myTab") ... |
Get Pro Telerik ASP.NET and Silverlight Controls: Master Telerik Controls for Advanced ASP.NET and Silverlight Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.