May 31, 2013, 2:03 PM
[CLOSED] MultiCombo checkbox problem
Hi,
I have a MultiCombo and I define a trigger that clear selection; value is reset but checkboxs remain "checked"; here is the code:
many thanks
I have a MultiCombo and I define a trigger that clear selection; value is reset but checkboxs remain "checked"; here is the code:
<ext:MultiCombo ID="cmbSiti" runat="server" DisplayField="descr" ValueField="sito" AllowBlank="true" Width="260" EmptyText="" TypeAhead="true" TriggerAction="All" ForceSelection="false" Mode="Local">
<ListConfig MinWidth="500"></ListConfig>
<Store>
<ext:Store ID="stSiti" runat="server">
<Fields>
<ext:ModelField Name="sito"></ext:ModelField>
<ext:ModelField Name="descr"></ext:ModelField>
</Fields>
</ext:Store>
</Store>
<Triggers>
<ext:FieldTrigger Tag="Pulisci" Icon="Clear" Qtip="Pulisci" />
</Triggers>
<Listeners>
<TriggerClick Handler="if (tag === 'Pulisci') { Pulisci(this); }" />
</Listeners>
<ToolTips>
<ext:ToolTip runat="server" ID="ttSiti" Html="">
<Listeners>
<Show Handler="showToolTip(this);"></Show>
</Listeners>
</ext:ToolTip>
</ToolTips>
</ext:MultiCombo>
<script language="javascript">
function showToolTip(toolTip) {
if (Ext.getCmp("cont_Header_cmbSiti")) {
siti = Ext.getCmp("cont_Header_cmbSiti").rawValue;
toolTip.update(siti);
}
}
function Pulisci(cmb) {
cmb.clear();
cmb.reset();
}
</script>
Also I want to know if it is possible to "search" on DisplayField like combo: while I type a character, the list is filtering on the word typed (if exists corrispondence)many thanks
Last edited by Daniil; Jun 03, 2013 at 2:32 PM.
Reason: [CLOSED]