Jul 13, 2015, 4:53 PM
ComboBox in GridPanel does not work, Ext.net 3.1.
I have a ComboBox within a GridPanel that behind the ID and the Company Name , is as follows: The problem in question is that the select an item from the ComboBox it only shows the ID ( ValueField ), and is set to show the name ( displayField ) .. this only happens within the GridPanel , already tested elsewhere and functions normally. Can anyone help me?
<ext:Store ID="StoreEmpresas" runat="server" >
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="CodigoEmpresa" />
<ext:ModelField Name="NomeEmpresa" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
<ext:GridPanel ID="GridAtributo" runat="server" Title="Filiais" Region="Center" Header="False" Scroll="Vertical" AutoScroll="True">
<ColumnModel runat="server">
<Columns>
<ext:Column runat="server" Text="Atributo" DataIndex="IdAttribute" Flex="1">
<Editor>
<ext:ComboBox ID="cboEmpresa" runat="server" DisplayField="NomeEmpresa" ValueField="CodigoEmpresa" FieldLabel="Empresa" StoreID="StoreEmpresas" LabelAlign="Top">
<DirectEvents>
<Expand OnEvent="cboEmpresa_Expand" />
</DirectEvents>
</ext:ComboBox>
</Editor>
</ext:Column>
</Columns>
</ColumnModel>
</ext:GridPanel>
Last edited by Daniil; Jul 17, 2015 at 1:40 PM.
Reason: Please use [CODE] tags