I am attempting to add a footertemplate to my radcombobox to displaying count for the number of rows found. The problem is, the value of RadComboBox.Items.Count is not displaying in the <asp:Literal> tag until I click on the drop down a second time. I can see that RadComboBox.Items.Count does have a value but it is not displaying initially. Does anyone have any ideas?
Rick
<
telerik:RadCombobox ID="cboQuestionListTier1" Runat="server" Width="700px"
BorderColor="LightGray" EnableLoadOnDemand="true" OnItemDataBound="cboQuestionListTier1_ItemDataBound"
ForeColor="Black" MarkFirstMatch="true" DropDownWidth="750px"
Height="350px" BackColor="White" BorderStyle="Solid" BorderWidth="1px" AutoPostBack="true"
OnItemsRequested="cboQuestionListTier1_ItemsRequested"
HighlightTemplatedItems="true"
OnSelectedIndexChanged="cboQuestionListTier1_SelectedIndexChanged" Skin="Web20">
<FooterTemplate>
Number of rows found:
<asp:Literal runat="server" ID="cboQuestionListTier1ItemsCount" />
</FooterTemplate>
</telerik:RadComboBox>
Protected
Sub cboQuestionListTier1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemEventArgs) Handles cboQuestionListTier1.ItemDataBound
'set the Text and Value property of every item
'here you can set any other properties like Enabled, ToolTip, Visible, etc.
'set the initial footer label
CType(cboQuestionListTier1.Footer.FindControl("cboQuestionListTier1ItemsCount"), Literal).Text = Convert.ToString(cboQuestionListTier1.Items.Count)
End Sub