Create new controls in AjaxMethod
New Community Forums available at http://forums.ext.net
 

Coolite Forums

Welcome Guest ( Login | Register )
 
Create new controls in AjaxMethod
Subscribe
Last Login: 7/5/2010 6:07:58 AM
Posts: 269,
Posted 4/6/2009 12:58:51 AM

Group: Coolite Premium Member & Early Adopter

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]]);"}

Last Login: 7/5/2010 10:10:13 AM
Posts: 7,853,
Posted 4/6/2009 5:30:05 AM

Group: Core Development Team
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


--
Vladimir Shcheglov
Coolite Inc.
Development Team
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: 7/5/2010 6:07:58 AM
Posts: 269,
Posted 4/6/2009 7:54:28 AM

Group: Coolite Premium Member & Early Adopter

Thanks for the reply vladsch.

Any idea when this functionality might be looked at?

Thanks again,

Dan

Last Login: 7/5/2010 10:10:13 AM
Posts: 7,853,
Posted 4/6/2009 10:53:10 AM

Group: Core Development Team
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
 

--
Vladimir Shcheglov
Coolite Inc.
Development Team
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -5:00, Time now is 12:51pm