Hello, I have several radcombobox controls in my aspx/c# web application.
- The radcombobox has the "Checkbox" parameter set to "true"
- the control is populated from codebehind on page load
- the control is held within RadAjaxPanel and ASP UpdatePanel
scenario: When i 'check' an item from the radcombobox, it shows the loading image and fires the OnSelectedIndexChanged event from code behind as supposed to. But when everything is completed, radcombobox on my page shows that no item has been selected... weird thing is when i select the same item from the same radcombox "again", it shows my selection properly.
So to sum it up, I have to select the item 'twice' for it to work right.
Am i doing something wrong? I just want the item to 'stay' selected from the first try without having to select it again.
ASPX:
- The radcombobox has the "Checkbox" parameter set to "true"
- the control is populated from codebehind on page load
- the control is held within RadAjaxPanel and ASP UpdatePanel
scenario: When i 'check' an item from the radcombobox, it shows the loading image and fires the OnSelectedIndexChanged event from code behind as supposed to. But when everything is completed, radcombobox on my page shows that no item has been selected... weird thing is when i select the same item from the same radcombox "again", it shows my selection properly.
So to sum it up, I have to select the item 'twice' for it to work right.
Am i doing something wrong? I just want the item to 'stay' selected from the first try without having to select it again.
ASPX:
<
telerik:RadAjaxPanel
ID
=
"ProductsRadAjaxP"
runat
=
"server"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
RequestQueueSize
=
"50"
>
<
asp:UpdatePanel
ID
=
"UpdatePanel1"
UpdateMode
=
"Conditional"
runat
=
"server"
>
<
ContentTemplate
>
<
table
width
=
"100%"
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"lbl_Country"
runat
=
"server"
Text
=
"Country: "
/>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"cmb_Country"
runat
=
"server"
Height
=
"200"
Width
=
"160"
EmptyMessage
=
"Choose Country"
MarkFirstMatch
=
"true"
EnableLoadOnDemand
=
"true"
AutoPostBack
=
"true"
CheckBoxes
=
"true"
EnableCheckAllItemsCheckBox
=
"true"
Filter
=
"Contains"
OnSelectedIndexChanged
=
"cmb_Country_SelectedIndexChanged"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"lbl_Casa"
runat
=
"server"
Text
=
"Casa: "
/>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"cmb_Casa"
runat
=
"server"
Height
=
"200"
Width
=
"160"
EmptyMessage
=
"Choose Casa"
MarkFirstMatch
=
"true"
EnableLoadOnDemand
=
"true"
AutoPostBack
=
"true"
CheckBoxes
=
"true"
EnableCheckAllItemsCheckBox
=
"true"
Filter
=
"Contains"
OnSelectedIndexChanged
=
"cmb_Casa_SelectedIndexChanged"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<!-- there are alot more controls, but all with the same parameter -->
</
table
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
Transparency
=
"1"
Skin
=
"Metro"
>
</
telerik:RadAjaxLoadingPanel
>
C#:
protected
void
cmb_Country_SelectedIndexChanged(
object
sender, EventArgs e)
{
//I have a long process and SQL procedures... this is just an example of how i'm filling the control
cmb_Casa.DataSource = DataHelper.GetCasa(cmb_Country.CheckedItems[0].Value);
cmb_Casa.DataBind();
}
.
.
.
.