[CLOSED] Adding Elements to a form dynamically

  1. #1

    [CLOSED] Adding Elements to a form dynamically

    Hi,

    I have a number of form fields like this:

    <Anchors>
    	<ext:Anchor>
    		<ext:TextField ID="TextField1" runat="server" FieldLabel="Field 1" />
    	</ext:Anchor>
    	<ext:Anchor>
    		<ext:TextField ID="TextField2" runat="server" FieldLabel="Field 2" />
    	</ext:Anchor>
    </Anchors>
    How would I add more form elements to these dynamically, for example in the OnInit() or OnLoad() methods of the code behind file?

    Many Thanks
    Last edited by geoffrey.mcgill; Jun 21, 2011 at 4:56 PM. Reason: [CLOSED]
  2. #2
    Hi,

    In code-behind you can add Components to the .Items Collection of the Parent Container.

    Hope this helps.
    Geoffrey McGill
    Founder
  3. #3
    Many thanks, this has solved my issue.

Similar Threads

  1. [CLOSED] Adding portlets dynamically
    By GmServizi in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Aug 31, 2012, 7:14 PM
  2. Replies: 0
    Last Post: Apr 09, 2009, 4:49 PM
  3. Adding Form fields at run time
    By sz_146 in forum 1.x Help
    Replies: 1
    Last Post: Feb 10, 2009, 6:18 PM
  4. Dynamically adding form fields
    By sz_146 in forum 1.x Help
    Replies: 4
    Last Post: Nov 11, 2008, 11:10 AM
  5. [CLOSED] Dynamically adding controls to a tav
    By riccardosarti in forum 1.x Help
    Replies: 3
    Last Post: Sep 24, 2008, 9:49 AM

Tags for this Thread

Posting Permissions