Nov 22, 2010, 1:51 PM
[CLOSED] Combobox not contained value
Hi,
I have a combobox editable. The user can write the first letters and the system autocompletes (I adjust the combobox code). In my application, when a combo isn't valid, it's shown on red.
What I need is to mark the combobox as invalid when the value write by the user isn't on the combobox item list and, if possible, to clear the last value.
Could you point me in the right direction, please?
(I have tried to use the valueNotFoundText attribute (with no color), but the user didn't notice this fact).
Thank u in advance.
I have a combobox editable. The user can write the first letters and the system autocompletes (I adjust the combobox code). In my application, when a combo isn't valid, it's shown on red.
What I need is to mark the combobox as invalid when the value write by the user isn't on the combobox item list and, if possible, to clear the last value.
Could you point me in the right direction, please?
(I have tried to use the valueNotFoundText attribute (with no color), but the user didn't notice this fact).
Thank u in advance.
<ext:ComboBoxID="cmbDeliveryAgency"TriggerAction="All"AutoWidth="true"Width="175"
ListWidth="350"StoreID="storeDeliveryAgencies"DisplayField="Name"ValueField="Id"
runat="server"ItemSelector="div.search-item"TypeAhead="false"Mode="Local"
HideTrigger="false"EmptyText="<%$ Resources: strings, Info_Results %>"
AllowBlank="false"SelectOnFocus="true"Title="<%$ Resources: lblDeliveryAgency %>"ForceSelection="false">
<TemplateID="Template2"runat="server">
<Html>
<tplfor=".">
<divclass="search-item">
<spanstyle="font-weight:bold;">{Name}</span>
</div>
</tpl>
</Html>
</Template>
<SelectOnEvent="cmbDeliveryAgency_Change"/>
</DirectEvents>
<CustomConfig>
<ext:ConfigItemName="anyMatch"Value="true"Mode="Raw">
</ext:ConfigItem>
</CustomConfig>
</ext:ComboBox>
Last edited by Daniil; Nov 24, 2010 at 6:56 AM.
Reason: [CLOSED]