Problem with CheckBox inside a RadPanelItem

4 posts, 0 answers
  1. wima
    wima avatar
    10 posts
    Member since:
    Mar 2006

    Posted 29 May 2009 Link to this post

    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
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 29 May 2009 Link to this post

    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.
  3. wima
    wima avatar
    10 posts
    Member since:
    Mar 2006

    Posted 02 Jun 2009 Link to this post

    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
  4. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 04 Jun 2009 Link to this post

    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.
Back to Top