Aug 26, 2015, 2:31 PM
[CLOSED] filter grid with combobox column
Hi,
In a grid
how to filter a column of combobox by displayField ?
In a grid
<Filter>
<ext:StringFilter />
</Filter>
When I filter, the search is done by valuefield .how to filter a column of combobox by displayField ?
<ext:Column runat="server" Text="Grupo<br/>Atendimento" Flex="2" DataIndex="TO_IDCONUNTOATENDIMENTO">
<Renderer Fn="rendererDescGrupoAtend" />
<Editor>
<ext:ComboBox
MatchFieldWidth="false"
runat="server"
ID="cbbGrupoAtendimento"
Width="250"
DisplayField="CA_DESCRICAO"
ValueField="CA_ID"
QueryMode="Local"
ForceSelection="true"
TriggerAction="All"
EnableKeyEvents="true"
EmptyText="Selecione o Grupo de atendimento">
<Listeners>
<BeforeQuery Fn="filtrarPalavraInteira" />
</Listeners>
<Store>
<ext:Store ID="StoreGrupoAtendimento" ClientIDMode="Static" IDMode="Static" DataSourceID="portalSocCa" AutoSync="true" runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="CA_ID" />
<ext:ModelField Name="CA_DESCRICAO" />
</Fields>
</ext:Model>
</Model>
<Listeners>
<Load Handler="#{cbbGrupoAtendimento}.setValue(#{cbbGrupoAtendimento}.store.getAt(0).get('id'));" />
</Listeners>
<Sorters>
<ext:DataSorter Property="CA_ID"></ext:DataSorter>
</Sorters>
</ext:Store>
</Store>
<ListConfig Width="320" Height="300" ItemSelector=".x-boundlist-item">
<Tpl runat="server">
<Html>
<tpl for=".">
<tpl if="[xindex] == 1">
<table class="cbChecklist-list">
<tr>
<th>Id</th>
<th>Descrição</th>
</tr>
</tpl>
<tr class="x-boundlist-item">
<td>{CA_ID}</td>
<td>{CA_DESCRICAO}</td>
</tr>
<tpl if="[xcount-xindex]==0">
</table>
</tpl>
</tpl>
</Html>
</Tpl>
</ListConfig>
</ext:ComboBox>
</Editor>
<Filter>
<ext:StringFilter />
</Filter>
</ext:Column>
Last edited by Daniil; Sep 01, 2015 at 11:44 PM.
Reason: [CLOSED]