Dear Mario,

I having some problem with combobox now...


When i set disabled=true in VB code, cannot get the selecteditem.value from then.. but the combox show the right text.


Any idea ???



ASP:
<ext:Store id="strComboCriticidade" runat="server">
    <Reader>
        <ext:JsonReader ReaderID="cod_criticidade">
            <Fields>
                <ext:RecordField Name="value" Type="Int" Mapping="cod_criticidade" />
                <ext:RecordField Name="text" Type="String" Mapping="criticidade" />
            </Fields>
        </ext:JsonReader>
    </Reader>
    </ext:Store>



                        <ext:Anchor Horizontal="100%">
                        <ext:ComboBox id="cmbCriticidade" runat="server" StoreID="strComboCriticidade" ValueField="value" DisplayField="text" FieldLabel="Criticidade" Editable="false" TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" EmptyText="Selecione a Criticidade..." Select&#111;nfocus="true" AllowBlank="false" />
                        </ext:Anchor>

VB:
                strComboCriticidade.DataSource = RS("SELECT cod_criticidade, criticidade FROM time.tb_criticidades ORDER BY criticidade")
                strComboCriticidade.DataBind()



cmbCriticidade.SetValue(5)
cmbCriticidade.Disabled = True


If cmbCriticidade.SelectedItem.Value = vbNullString Then
	'Allways enter here
            stbTarefa.Text = "O campo 'Criticidade' não pode ficar em branco."
            cmbCriticidade.Focus()
End If