This is a migrated thread and some comments may be shown as answers.

[Solved] RADCOMBOBOX FooterTemplate not rendering properly

1 Answer 159 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
troyski8
Top achievements
Rank 1
troyski8 asked on 30 Sep 2009, 06:07 PM
Hello,

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

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 01 Oct 2009, 10:08 AM
Hello troyski8,

I think it will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

All the best,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
troyski8
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or