Feb 27, 2013, 9:30 AM
ComboBox don't resolve the DisplayField in the ComboBox.Text
Hi Support-Team,
i have one Problem with the ComboBox. I initial the Properties DisplayField and ValueField. If i select a Item in the List, i will not see the DisplayField - Text in the ComboBox.Text. I see the ValueField - Property in the ComboBox.Text.
i have one Problem with the ComboBox. I initial the Properties DisplayField and ValueField. If i select a Item in the List, i will not see the DisplayField - Text in the ComboBox.Text. I see the ValueField - Property in the ComboBox.Text.
<ext:ComboBox ID="ComboBox1" runat="server" FieldLabel="Rufnummer:" AllowBlank="false"
DisplayField="Miet_Obj_Bez" ValueField="ID_Stammdaten"
MinChars="1" QueryMode="Local"
TriggerAction="All" SelectOnFocus="true"
ondirectchange="ComboBox1_DirectChange" ondirectselect="ComboBox1_DirectSelect"
ValueNotFoundText="Kein Ergebnis gefunden">
<ListConfig LoadingText="Suche...">
<ItemTpl ID="ItemTpl1" runat="server">
<Html>
<div class="ComboBoxSearch-item">
<h3><span>{Miet_Obj_Bez}</span></h3>
</div>
</Html>
</ItemTpl>
</ListConfig>
<Store>
<ext:Store ID="Store1" runat="server" AutoLoad="false" IDProperty="ID_Stammdaten">
<Model>
<ext:Model ID="Model1" runat="server">
<Fields>
<ext:ModelField Name="ID_Stammdaten" Type="Int" />
<ext:ModelField Name="Miet_Obj_Bez"/>
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:ComboBox>
Last edited by KevinWinter; Feb 27, 2013 at 9:33 AM.