Hello
I have a problem to use the RadComboBox component.
I happen to have three combos where one feeds off the other according to the selected value.
When I select the first, the second is loaded.
When I select the second third is loaded.
But when I select the third combo does not open when I click on it.
For it to work, it is necessary that I give a click outside of it (anywhere on the form) and then click it again to open the content.
This happens in all forms that have a sequence of 3 or more combos.
Would know tell me why? Is there a solution for this?
The aspx code of three combos:
<
td
style
=
"text-align: left"
>
<
telerik:RadComboBox
ID
=
"rddlTipoRegistro"
runat
=
"server"
Width
=
"120px"
RegisterWithScriptManager
=
"true"
AppendDataBoundItems
=
"True"
AutoPostBack
=
"True"
Culture
=
"pt-BR"
MarkFirstMatch
=
"True"
OnSelectedIndexChanged
=
"rddlTipoRegistro_SelectedIndexChanged"
>
</
telerik:RadComboBox
>
</
td
>
<
td
style
=
"text-align: left"
>
<
telerik:RadComboBox
ID
=
"ddlArea"
runat
=
"server"
Width
=
"220px"
AppendDataBoundItems
=
"True"
AutoPostBack
=
"True"
OnSelectedIndexChanged
=
"ddlArea_SelectedIndexChanged"
Culture
=
"pt-BR"
MarkFirstMatch
=
"True"
>
</
telerik:RadComboBox
>
</
td
>
<
td
style
=
"text-align: left"
>
<
telerik:RadComboBox
ID
=
"ddlCelulaServico"
runat
=
"server"
Width
=
"200px"
AppendDataBoundItems
=
"True"
AutoPostBack
=
"True"
OnSelectedIndexChanged
=
"ddlCelulaServico_SelectedIndexChanged"
Culture
=
"pt-BR"
MarkFirstMatch
=
"True"
>
</
telerik:RadComboBox
>
</
td
>
And the way they are loaded.
The combo rddlTipoRegistro bears ddlArea combo which in turn loads the combo ddlCelulaServico
and this does not open if you click right then.
TipoRegistroBO tipoRegistroBo = new TipoRegistroBO();
rddlTipoRegistro.Items.Clear();
rddlTipoRegistro.Items.Add(new RadComboBoxItem("Selecione", "0"));
rddlTipoRegistro.DataValueField = "Id";
rddlTipoRegistro.DataTextField = "Descricao";
rddlTipoRegistro.DataSource = tipoRegistroBo.getMany(new TipoRegistroVO());
rddlTipoRegistro.DataBind();
ServicoBO bo = new ServicoBO();
ServicoVO filtro = new ServicoVO();
filtro.TipoRegistro = new TipoRegistroVO(Convert.ToInt32(rddlTipoRegistro.SelectedValue));
ddlArea.DataValueField = "Id";
ddlArea.DataTextField = "Descricao";
ddlArea.DataSource = bo.getAreaPorTipoRegistro(filtro);
ddlArea.DataBind();
ServicoBO bo = new ServicoBO();
ServicoVO filtro = new ServicoVO();
filtro.TipoRegistro = new TipoRegistroVO(Convert.ToInt32(rddlTipoRegistro.SelectedValue));
filtro.Area = new AreaVO(Convert.ToInt32(ddlArea.SelectedValue));
ddlCelulaServico.DataValueField = "Id";
ddlCelulaServico.DataTextField = "Descricao";
ddlCelulaServico.DataSource = bo.getCelulaPorTipoRegistroArea(filtro);
ddlCelulaServico.DataBind();