I have a RadComboBox that inside a RadRotatorItem that when I change the selected item through server side code, it does not reflect on the page. On page load, I try changing the selected item using RadComboItem.SelectedIndex = 3 or RadComboItem.Items[3].Selected = true; but neither work. Here is my code:
ASPX:
ASPX:
<telerik:RadComboBox ID="cmbReminder_1" MarkFirstMatch="True" runat="server" Height="190px"
Width="100px" Skin="Default" AutoPostBack="False" HighlightTemplatedItems="True"
ShowToggleImage="True" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged1">
<ItemTemplate>
<table style="border-bottom: 1px dotted #EFEFEF; margin-bottom: 10px; font-size: 11px;"
width="60px">
<tr>
<td>
<img src='/Images/<%# DataBinder.Eval(Container, "Attributes['ImagePath']") %>' alt="" />
</td>
<td>
<%# DataBinder.Eval(Container, "Attributes['DisplayName']") %>
</td>
</tr>
</table>
</ItemTemplate>
<Items>
<telerik:RadComboBoxItem ImagePath="EmailIcon_32x32p.png" DisplayName="Email" Text="Email" Value="1">
</telerik:RadComboBoxItem>
<telerik:RadComboBoxItem ImagePath="TextIcon_32x32p.png" DisplayName="SMS" Text="SMS" Value="2">
</telerik:RadComboBoxItem>
<telerik:RadComboBoxItem ImagePath="PhoneIcon_32x32p.png" DisplayName="Phone" Value="3"
Text="Phone"></telerik:RadComboBoxItem>
</Items>
</telerik:RadComboBox>
Code behind:
RadRotatorItem step3Item = (RadRotatorItem)this.RadRotatorHorizontal.Controls[2];
RadComboBox cmbTiming_2 = (RadComboBox)step3Item.FindControl("cmbTiming_2");
I am getting the correct control because when I step through the code, I examine the cmbTiming_2 and it contains the correct items.
Any help is appreciated