Jan 16, 2013, 3:16 PM
Populate FormPanel: problems with Combobox
Hello All,
Today I have two pages, one her a registration screen and the other a grid that is populated with the database. On the registration page I have a form (FormPanel) with two component combobox when I click save I can get the values of the components, and when I list the data in GridPanel not have problems when I click on the edit button of the grid I redirect it for registration by filling out the form fields already tried two ways.
first attempt.
Today I have two pages, one her a registration screen and the other a grid that is populated with the database. On the registration page I have a form (FormPanel) with two component combobox when I click save I can get the values of the components, and when I list the data in GridPanel not have problems when I click on the edit button of the grid I redirect it for registration by filling out the form fields already tried two ways.
first attempt.
*cbxService = is the name attribute of the combobox.
int a = 10;
this.FrmFormPanel.SetValues( new{
cbxService = a;
});
second attempt. int a = 10;
this.cmbServico.SetValue(a);
I send only one example of a combobox I have on the registration page.<ext:FormPanel ID="FrmFormPanel" runat="server" Border="false">
<Items>
<ext:ComboBox ID="cmbServico" runat="server" Name="cbxService" Width="300" LabelAlign="Top" FieldLabel="Project / Service" DisplayField="Description" ValueField="Codigo" EmptyText="PROJECT / SERVICE" AllowBlank="false">
<Store>
<ext:Store ID="Store1" runat="server" SerializationMode="Complex">
<Model>
<ext:Model ID="Model2" runat="server" IDProperty="Codigo">
<Fields>
<ext:ModelField Name="Codigo" ServerMapping="Codigo" />
<ext:ModelField Name="Description" ServerMapping="Description" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:ComboBox>
</Items>
</ext:FormPanel>
Last edited by Ewerton93; Jan 16, 2013 at 3:20 PM.