EXTJS-组合框(组合框列表选项未显示?)

时间:2018-12-28 15:21:06

标签: extjs combobox ext.net

组合框列表选项不显示? 我添加了组合框,但该项目未显示;如果我选择任何项目,它将显示为选定值,但是当我通过检查元素对其进行检查时,div如下所示,其中没有项目?? 有时项目的div根本没有出现?有任何帮助吗??

注释:我向组合框添加了一些属性,但是不起作用 Stateful =“ true” StateID =“ SIDcb” ViewStateMode =“ Enabled” ClientIDMode =“ Static”

<div class="x-combo-list-item x-combo-selected"></div>
<div class="x-combo-list-item"></div>
<div class="x-combo-list-item"></div>
<div class="x-combo-list-item"></div>

组合框-减速:

<ext:ComboBox ID="cbItems" runat="server" Editable="false" Width="250" AllowBlank="false"
 CausesValidation="true" MsgTarget="Under" DisplayField="Name" ValueField="id">                     
<Template ID="T1" Visible="False" StopIDModeInheritance="False"EnableViewState="False" runat="server"></Template>
<Store>
<ext:Store ID="StrItems" runat="server" OnRefreshData="FillDDLItems"
 >
 <Reader>
<ext:ArrayReader>
 <Fields>
<ext:RecordField Name="id" Mapping="id" />
<ext:RecordField Name="TypeName" Mapping="TypeName" />
 <ext:RecordField Name="Name" Mapping="Name" />
 </Fields>
</ext:ArrayReader>
 </Reader>
</ext:Store>
</Store>
</ext:ComboBox> 

0 个答案:

没有答案
相关问题