Rendering an Ext.Net Panel with children to HTML on the server

  1. #1

    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();
  2. #2
    I'm still working on this. Can anybody tell me if I'm approaching this correctly?
    Thanks!

Similar Threads

  1. [CLOSED] Loader with Html renderer and Window rendering
    By paulc in forum 2.x Legacy Premium Help
    Replies: 33
    Last Post: Jun 25, 2013, 7:43 AM
  2. [CLOSED] Rendering html in a user control
    By fordprefect in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 14, 2012, 7:42 PM
  3. [CLOSED] Server side custom GridPanel Column rendering
    By FAS in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 24, 2012, 2:45 PM
  4. [CLOSED] Script tag HTML rendering on first page load
    By seanwo in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 03, 2010, 8:31 PM
  5. Replies: 1
    Last Post: May 28, 2010, 1:13 PM

Posting Permissions