Create new controls in AjaxMethod

  1. #1

    Create new controls in AjaxMethod



    Is there a way to create new controls within an AjaxMethod, and add these to a FormPanel? E.g.

    protected void btnNewField_Click(object sender, AjaxEventArgs e)
    {
     Anchor opAnchor = new Anchor();
     TextArea opTextArea = new TextArea();
     opTextArea.FieldLabel = "Testing";
     opAnchor.Items.Add(opTextArea);
    
    
     frmDetails.Anchors.Add(opAnchor);
    
     cboGroup.Value = 1;
    }
    At the moment, the above method generates the following code on the client-side:

    {script:"Coolite.Ext.setValues([[cboGroup,1]]);"}
  2. #2

    RE: Create new controls in AjaxMethod

    Hi,

    Dynamic creation of controls is not supported yet. We have it in our plans but it is complicated task which is not implemented yet


  3. #3

    RE: Create new controls in AjaxMethod



    Thanks for the reply vladimir.

    Any idea when this functionality might be looked at?

    Thanks again,

    Dan
  4. #4

    RE: Create new controls in AjaxMethod

    Hi,

    At this moment we can't say when this functionality might be implemented. But when working version will be ready we notify about it forum community

Similar Threads

  1. [CLOSED] Create Controls at Runtime
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 24, 2011, 6:32 PM
  2. Replies: 0
    Last Post: Sep 25, 2010, 3:28 PM
  3. Create controls in code behind
    By Yannis in forum 1.x Help
    Replies: 1
    Last Post: Nov 26, 2009, 12:03 AM
  4. [CLOSED] Create controls dynamicly
    By Ningdev in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 03, 2009, 6:59 AM
  5. [CLOSED] Load Coolite controls from AjaxEvent or AjaxMethod
    By pumpkin in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 02, 2009, 11:02 PM

Posting Permissions