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

[Solved] ComboBox footer not updated

1 Answer 109 Views
Grid
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:13 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
Princy
Top achievements
Rank 2
answered on 19 May 2009, 04:14 AM
Hello,

I tried the scenario and it is working fine in my end. Here is the code that I tried.

ASPX:
 
<telerik:RadComboBox ID="RadComboBox1" runat="server" Skin="Telerik">     
    <Items>    
        <telerik:RadComboBoxItem Text="Item1" />    
        <telerik:RadComboBoxItem Text="Item2" />    
        <telerik:RadComboBoxItem Text="Item3" />    
    </Items>    
    <FooterTemplate>    
        <asp:Label runat="server" ID="Label1" Text="Old Footer Text"</asp:Label>         
    </FooterTemplate>      
</telerik:RadComboBox> 
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Change footer text" /> 

CS:
 
protected void Button1_Click(object sender, EventArgs e)  
{  
    Label lbl = (Label)RadComboBox1.Footer.FindControl("Label1");  
    lbl.Text = "This is my new Footer Text";  

Thanks,
Princy.
Tags
Grid
Asked by
TIGER
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or