Jan 07, 2010, 1:20 PM
Linked comboboxes
Helo, I'm with a problem when i try to load a combobox, the datasource of the store is correct,
i saw by watch that the data is on the datasource, but the combo do not show the itens correctly.
Store
Thanks.
i saw by watch that the data is on the datasource, but the combo do not show the itens correctly.
Store
<ext:Store ID="strCboTipoCurso" runat="server">
<Reader>
<ext:JsonReader ReaderID="tipoCurso">
<Fields>
<ext:RecordField Name="id">
</ext:RecordField>
<ext:RecordField Name="nome">
</ext:RecordField>
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
ASP<ext:ComboBox ID="cboTipoCurso" StoreID="strCboTipoCurso" LabelCls="lbl100" FieldLabel="Tipo de curso"
Cls="cbo200" runat="server" MinChars="1" MsgTarget="Side" BlankText="Campo obrigatório"
AllowBlank="false">
</ext:ComboBox>
C# Curso curso = new Curso();
strCboTipoCurso.DataSource = curso.consultarTipoCursoPorUnidade(cboUnidadesCad.SelectedItem.Value);
strCboTipoCurso.DataBind();
cboTipoCurso.DataBind();
Thanks.