Feb 23, 2010, 6:01 PM
[CLOSED] [1.0] MVC and TabPanel AutoLoad
Hello vladimir,
Was wondering how I would be able to handle loading the content of a PartialExtView in a TabPanel AutoLoad
ExampleController.cs:
Cheers,
Timothy
Was wondering how I would be able to handle loading the content of a PartialExtView in a TabPanel AutoLoad
ExampleController.cs:
public ActionResult Index()
{
return View();
}
public ActionResult Example()
{
var result = PartialExtView();
result.RenderMode = RenderMode.RenderTo;
return result;
}
Index.aspx:<ext:TabPanel ID="TabPanel1" runat="server">
<Items>
<ext:Panel ID="Panel1" runat="server" Title="Tab 1">
<Content>Word</Content>
</ext:Panel>
<ext:Panel ID="Panel2" runat="server" Title="Tab 2">
<AutoLoad Url="/Example/Example" />
</ext:Panel>
</Items>
</ext:TabPanel>
Example.ascx:<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<ext:Panel ID="Panel3" runat="server">
<Content>
Loaded ...
</Content>
</ext:Panel>
Appreciate your input.Cheers,
Timothy