Hi,

I am using a combobox and I have 3 model fields with it. I can get the values of LocationName and ZipCode by assigning them to Display Field and Value Field. My problem is I don't know where to assign the UserID. I need to pass it as a parameter when calling ChangeLocation function. Another alternative is to call the store and get the records inside it, but I don't know how to do it. I have tried using ComboBoxLocation.getStore().model.element(0).Field s.ElementAt(2). It gives me the details about the modelfield UserID, but not the values. I need the value itself. Please help. Thanks in advance.

ext:ComboBox ID="ComboBoxLocation" runat="server" Mode="Local" ForceSelection="true" Editable="false" FieldLabel="ChangeLocation" DisplayField="LocationName" ValueField="ZipCode" Width="300" SelectedIndex="1">
<Store>
      <ext:Store ID="StoreLocations" runat="server">
      <Model>
              <ext:Model ID="Model1" runat="server">
                      <Fields>
                             <ext:ModelField Name="LocationName" />
                             <ext:ModelField Name="ZipCode" />
                             <ext:ModelField Name="UserID" />
                      </Fields>
               </ext:Model>
       </Model>            
       </ext:Store>    
</Store>                                       
       <Listeners>
              <Select Handler="changeLocation(this.getValue());" />                       
       </Listeners>
</ext:ComboBox>