May 26, 2012, 12:37 AM
Rendering an Ext.Net Panel with children to HTML on the server
I have an Ext.Net Panel control with many children added to its ContentControls collection. Is there a quick way to render the Html for the parent panel and all of its children for purposes of creating an export (e.g. to pdf)? I'm trying the below but the only Html that is rendered is from the parent panel. Apologies for not including a running sample.
Ext.Net.Panel pnlDoc = CreatePreview(); // CreatePreview adds the child panels
StringWriter sw = new StringWriter();
HtmlTextWriter w = new HtmlTextWriter(sw);
pnlDoc.RenderControl(w);
string htmWrite = sw.GetStringBuilder().ToString();