[CLOSED] Recreating Dynamic Controls within a IDynamicUserControl

  1. #1

    [CLOSED] Recreating Dynamic Controls within a IDynamicUserControl

    I'm using a UserControl that implements Ext.Net.IDynamicUserControl in conjunction with a TabPanel and letting the tab load the UserControl using a DirectMethod. On the UserControl, I'm building UI using dynamic controls.

    The BeforeRender method works great the first time to create the dynamic controls.

    But, I can't find a way to "re-build" the controls on a post-back because BeforeRender doesn't get fired again.

    How can I use a method to "re-build" my dynamic user controls on a post-back?

    Thank you.
    Last edited by Daniil; Jun 20, 2014 at 4:21 AM. Reason: [CLOSED]
  2. #2
    Hi @chulcy,

    If you render a user control in such a way, then that user control is not added to the page's controls and it is not recreated on each request. Ext.NET just renders a user control's content to a browser.

    If you need the controls to be recreated, you should add the user control in a regular ASP.NET way.

Similar Threads

  1. [CLOSED] Recreating store in code behind
    By tMp in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 30, 2013, 11:30 AM
  2. Replies: 1
    Last Post: Apr 25, 2013, 6:02 AM
  3. Replies: 1
    Last Post: Jul 20, 2012, 8:08 AM
  4. Replies: 7
    Last Post: Mar 24, 2009, 7:48 AM
  5. [CLOSED] How to recreating controls
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 28, 2008, 10:50 AM

Tags for this Thread

Posting Permissions