PDA

View Full Version : Combobox store list wider than combobox



Kerry
Jul 28, 2020, 2:15 AM
25398slider
Hi to all

Store link to SQL database. Actual field number is very less, I have no idea why so wide. How can I remove the slider?
Thank you.


<ext:ComboBox ID="Com_CName" runat="server" EmptyText="请选择姓名" TypeAhead="true" ForceSelection="true" Width="280"
DisplayField="C_Name" ValueField="C_Name" MinChars="1" MatchFieldWidth="true" FieldLabel="姓名" Note="" >
<Store>
<ext:Store ID="Store_Com_CName" runat="server" >
<Model>
<ext:Model ID="Model3" runat="server">
<Fields>
<ext:ModelField Name="C_Name" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ListConfig Width="250" Height="300" ItemSelector=".x-boundlist-item" >
<Tpl ID="Tpl1" runat="server">
<Html>
<tpl for=".">
<tpl if="[xindex] == 1">
<table class="cbStates-list">
<tr>
<th>C_Name</th>
</tr>
</tpl>
<tr class="x-boundlist-item">
<td>{C_Name}</td>
</tr>
<tpl if="[xcount-xindex]==0">
</table>
</tpl>
</tpl>
</Html>
</Tpl>
</ListConfig>
<Triggers>
<ext:FieldTrigger Icon="Clear" Qtip="Remove selected" />
</Triggers>
<Listeners>
<BeforeQuery Handler="this.getTrigger(0)[this.getRawValue().toString().length == 0 ? 'hide' : 'show']();" />
<TriggerClick Handler="if (index == 0) {
this.focus().clearValue();
trigger.hide();
}" />
<Select Handler="this.getTrigger(0).show();" />
</Listeners>

</ext:ComboBox>