Dynamically Render user control into panel content section

  1. #1

    Dynamically Render user control into panel content section

    I have a user control contains ASP.net controls,
    I want to render this control inside ext.net panel in the content section

    The following is the code i used, but it seems there is a problem in rendering the user control inside panel content :

                    Ext.Net.Panel oPanel = new Ext.Net.Panel();
                    oPanel.ID = "Test1";
                    oPanel.Height = 100;
    
                    ITEC_Hijri oITEC_Hijri = new ITEC_Hijri();
                    oITEC_Hijri.ID = "ITEC_Hijri1";
    
                    oPanel.ContentContainer.Controls.Add(oITEC_Hijri);
                    oPanel.Render(pnlBuildForm1, 0, RenderMode.InsertTo);
                    
                    ResourceManager1.Controls.Add(oPanel);
    
    
                    oPanel = new Ext.Net.Panel();
                    oPanel.ID = "Test2";
                    oPanel.Height = 100;
    
                    oITEC_Hijri = new ITEC_Hijri();
                    oITEC_Hijri.ID = "ITEC_Hijri2";
    
                    oPanel.ContentContainer.Controls.Add(oITEC_Hijri);
                    oPanel.Render(pnlBuildForm2, 0, RenderMode.InsertTo);
                    ResourceManager1.Controls.Add(oPanel);
  2. #2
    Hi @ITECH-Developer,

    Do you render it during a DirectEvent/DirectMethod?

    Here is an example.
    http://examples2.ext.net/#/XRender/U...UpdateContent/

Similar Threads

  1. Replies: 5
    Last Post: Jul 30, 2012, 8:47 AM
  2. Replies: 0
    Last Post: May 17, 2012, 12:29 AM
  3. Replies: 0
    Last Post: Oct 19, 2010, 8:39 AM
  4. Replies: 0
    Last Post: May 03, 2010, 5:33 AM
  5. Partially Render a user control in MVC
    By alighaddar in forum 1.x Help
    Replies: 0
    Last Post: Oct 20, 2009, 2:11 PM

Tags for this Thread

Posting Permissions