12.6. PanelBar

The PanelBar is a control similar to the RadPanelBar in the ASP.NET AJAX suite. It is composed of PanelBarItem objects, each of which contains a title and a content area. When displayed in the page, the title is used to collapse and expand the content area. The content area can be loaded on the server or on demand. Listing 12-18 shows you how to create a PanelBar object declaratively, and Figure 12-18 shows how it looks.

Example 12.18. Creating a PanelBar Declaratively
Controller public ActionResult DeclarativeItems() { PBModel model = new PBModel { ExpandMode = PanelBarExpandMode.Single, radioExpandMode = "OnePanel", checkedOnePanel = "checked", checkedMultiplePanels = "" }; return View(model); } [AcceptVerbs(HttpVerbs.Post)] ...

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 live online training, plus books, videos, and digital content from nearly 200 publishers.