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

Problem with CheckBox inside a RadPanelItem

3 Answers 40 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
wima
Top achievements
Rank 1
wima asked on 29 May 2009, 01:44 PM
Hi

When I add a CheckBox to the Controls of a RadPanelItem, the CheckedChanged event will be fired only every second time. What could be the problem? Thank you
wima

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 29 May 2009, 02:06 PM
Hello M W,

We tried to repro the reported issue using the latest version of the controls, but to no avail. Please find below a sample code snippet that we used for our test. Let us know what's different in your case.

ASPX:
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server">  
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Value="templateHolder">  
                        <ItemTemplate> 
                            <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" 
                                AutoPostBack="true" Text="General" /> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
    </telerik:RadPanelBar> 
    </form> 
</body> 
</html> 
 

Code-behind:
using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
 
public partial class _Default : System.Web.UI.Page  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        
    }  
    protected void CheckBox1_CheckedChanged(object sender, EventArgs e)  
    {  
 
    }  
}  
 


Best wishes,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
wima
Top achievements
Rank 1
answered on 02 Jun 2009, 05:43 AM
Hi
This works really. But I want to add the checkboxes by code, because at design time I don't know how many checkbox I need.
When I add the Checkbox to the Controls of the RadPanelItem, I have de described effect.

Thank you
wima
0
Paul
Telerik team
answered on 04 Jun 2009, 12:34 PM
Hello wima,

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.

Thanks beforehand for your patience and cooperation,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
PanelBar
Asked by
wima
Top achievements
Rank 1
Answers by
Paul
Telerik team
wima
Top achievements
Rank 1
Share this question
or