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

[Solved] Footer template control not updated

1 Answer 131 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
TIGER
Top achievements
Rank 1
TIGER asked on 18 May 2009, 03:16 PM
Hi,
  when I tried to update a label object in the footer template of a combobox by setting label.Text from the server side, nothing happend.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 May 2009, 04:19 AM
Hi Tiger,

Here is the code which I tried on my end to set the text of a Label in the footer template of a RadComboBox.

ASPX:
 
 <telerik:RadComboBox ID="RadComboBox1" runat="server"
          <Items> 
           <telerik:RadComboBoxItem Text="Item1"  /> 
             <telerik:RadComboBoxItem Text="Item2"  /> 
               <telerik:RadComboBoxItem Text="Item3"  /> 
          </Items> 
          <FooterTemplate> 
              <asp:Label ID="Label1" runat="server" Text="Hello" ></asp:Label> 
          </FooterTemplate> 
        </telerik:RadComboBox> 

CS:
 
 Label lbl=(Label)RadComboBox1.Footer.FindControl("Label1"); 
       lbl.Text = "CustomText"

Regards
Shinu.




Tags
ComboBox
Asked by
TIGER
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or