Aug 06, 2014, 7:52 AM
[CLOSED] FormPanel Submit Values with Disabled and Selectable
Hi, I need to get the value from TextField, It has the property Selectable = "false", but, when I send the values, the value for this control is not sending, How Can I Do to send this value in the same list the data (getValues()) of FormPanel?, because if I have many textfields is very tired one by one.
<ext:FormPanel
ID="FormPanel1"
runat="server"
ButtonAlign="Right"
Height="185"
Padding="5"
Title="Title"
Width="300">
<Items>
<ext:TextField
ID="TextField1"
runat="server"
AnchorHorizontal="100%"
FieldLabel="Label">
<Listeners>
<Change Handler="App.TextField2.setValue(App.TextField1.getValue());" />
</Listeners>
</ext:TextField>
<ext:TextField
ID="TextField2"
runat="server"
AnchorHorizontal="100%"
FieldLabel="Label"
Selectable="false">
</ext:TextField>
</Items>
<Buttons>
<ext:Button ID="Button1" runat="server" Icon="Disk" Text="Submit">
<DirectEvents>
<Click OnEvent="Button1_Click">
<EventMask ShowMask="true" Msg="Registrando informaci?n..." />
<ExtraParams>
<ext:Parameter Name="registro" Value="Ext.encode(this.up('form').getForm().getValues(false, false, false, true))" Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:FormPanel>
protected void Button1_Click(object sender, DirectEventArgs e)
{
string strRegistro = e.ExtraParams["registro"];
Dictionary<string, string> dRegistro = JSON.Deserialize<Dictionary<string, string>>(strRegistro);
}
Last edited by Daniil; Aug 12, 2014 at 3:56 PM.
Reason: [CLOSED]