Feb 07, 2010, 2:06 PM
RE: [CLOSED] MVC PartialExtView
Hi Timothy,
I think it is incorrect to use AutoLoad (or load method) and AddTo mode because load method updates body. Load method can be used with RenderTo mode only
- AddTo: just use button with direct event
I think it is incorrect to use AutoLoad (or load method) and AddTo mode because load method updates body. Load method can be used with RenderTo mode only
- AddTo: just use button with direct event
<ext:Button ID="Button1" runat="server" Text="Load">
<DirectEvents>
<Click Url="/Test/Example/" />
</DirectEvents>
</ext:Button>
- RenderTo: you can use load, just pass body.id as container <Click Handler="#{Panel1}.load( { scripts: true, params: {ct:#{Panel1}.body.id}, url: '/Test/Example' } );" />
public ActionResult Example(string ct)
{
var result = this.PartialExtView();
result.ContainerId = ct;
result.RenderMode = RenderMode.RenderTo;
return result;
}
I know I promised examples for you. I hope that I'll make it soon