Populate FormPanel: problems with Combobox

  1. #1

    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.
    *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.

Similar Threads

  1. Replies: 1
    Last Post: Mar 01, 2012, 2:41 PM
  2. [CLOSED] combobox populate
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 17, 2011, 9:08 AM
  3. [CLOSED] Clone FormPanel (still got problems)
    By IanPearce in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 08, 2011, 2:16 PM
  4. [CLOSED] How to Populate Combobox on Focus?
    By ISI in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 01, 2011, 5:16 PM
  5. Replies: 12
    Last Post: Jun 30, 2010, 9:31 PM

Tags for this Thread

Posting Permissions