Apr 30, 2012, 6:33 PM
[CLOSED] Simple ComboBox
What am I missing? All I needed was just a simple combobox that a user can select a pre-defined reason or type in a new one. I am receiving a JSON error when I press my submit button.
<ext:ComboBox ID="ReasonComboBox" runat="server" FieldLabel="Reason" LabelWidth="45" IndicatorIcon="BulletRed" IndicatorTip="Required Field" ForceSelection="false" QueryMode="Local" EmptyText="Type in a reason or select from list ...">
<Items>
<ext:ListItem Text="Reason1" />
<ext:ListItem Text="Reason2" />
</Items>
<Triggers>
<ext:FieldTrigger Icon="Clear" Qtip="Clear Entry" />
</Triggers>
<Listeners>
<TriggerClick Handler="this.clearValue(); #{SubmitButton}.setDisabled(true);" />
<DirtyChange Handler="#{SubmitButton}.setDisabled((this.getRawValue().length == 0));" />
</Listeners>
</ext:ComboBox>
In the behind code I was calling ReasonComboBox.Text to retrieve the value either typed or selected in the combobox.
Last edited by Daniil; May 02, 2012 at 4:25 PM.
Reason: [CLOSED]