PDA

View Full Version : Field Replicator



RaphaelSaldanha
Jan 12, 2015, 12:32 AM
I would like to provide a Field Replicator example:

When Send To field is filled, a new one is created automatically.



<!DOCTYPE html>
<html>
<title>Field Replicator - Ext.NET Examples</title>
<body>
<ext:ResourceManager runat="server" Theme="Crisp" />
<ext:FormPanel Title="Field Replicator" BodyPadding="5" DefaultAnchor="100%" AutoScroll="true" Layout="AnchorLayout" Width="400" Height="300" runat="server">
<Items>
<ext:TextField FieldLabel="Send To" runat="server">
<Plugins>
<ext:FieldReplicator runat="server" />
</Plugins>
</ext:TextField>
<ext:TextField FieldLabel="Subject" AllowBlank="false" runat="server" />
<ext:TextArea FieldLabel="Message" AllowBlank="false" runat="server" />
</Items>
</ext:FormPanel>
</body>
</html>


Note: Based on Ext.Js example (http://dev.sencha.com/ext/5.1.0/examples/kitchensink/#form-fieldreplicator).

Daniil
Jan 12, 2015, 8:28 AM
Hi Raphael,

Thank you for the suggestion.

A FieldReplicator is used in this example.
http://examples2.ext.net/#/Layout/VBoxLayout/VBox_Form

I will add a "FieldReplicator" tag for this example. After that it will be possible to find it typing "FieldReplicator" in the search field.

RCN
Feb 10, 2015, 12:12 PM
Thank you Daniil